All Tails (Solution)

As a function of n, the average number of steps is

n2+n4

Or put another way, if Tn in the nth triangular number (1,3,6,10,15,…), then the average number of steps is

Tn2