Number of times you have to move n cards from one pile to another doing one up, one down, until you obtain the initial sequence.

A145787

Number of times you have to move n cards from one pile to another doing one up, one down, until you obtain the initial sequence.

Terms

    a(0) =1a(1) =2a(2) =2a(3) =3a(4) =3a(5) =6a(6) =6a(7) =4a(8) =4a(9) =6a(10) =6a(11) =10a(12) =10a(13) =14a(14) =14a(15) =5a(16) =5a(17) =18a(18) =18a(19) =10a(20) =10a(21) =12a(22) =12a(23) =21a(24) =21a(25) =26a(26) =26a(27) =9a(28) =9a(29) =30

External references