Penny Flipping, or Flipping Coins: Given a stack of n coins, flip the top coin, then the stack of the top two coins, then the stack of the top three etc... starting again with the top coin after flipping all n coins. A flip of m coins reverses their order and inverts their state. This is the number of flips required to restore the stack to its original configuration.

A089645

Penny Flipping, or Flipping Coins: Given a stack of n coins, flip the top coin, then the stack of the top two coins, then the stack of the top three etc... starting again with the top coin after flipping all n coins. A flip of m coins reverses their order and inverts their state. This is the number of flips required to restore the stack to its original configuration.

Terms

    a(0) =2a(1) =3a(2) =9a(3) =11a(4) =24a(5) =35a(6) =28a(7) =31a(8) =80a(9) =60a(10) =121a(11) =119a(12) =116a(13) =195a(14) =75a(15) =79a(16) =204a(17) =323a(18) =228a(19) =199a(20) =146a(21) =264a(22) =529a(23) =504a(24) =200a(25) =675a(26) =540a(27) =251a(28) =840a(29) =899

External references