OFFSET
1,2
COMMENTS
From Kevin Ryde, Oct 21 2021: (Start)
Configurations are encoded in ternary where the least significant digit is the peg number (0,1,2) which is the location of the smallest disc, the second least significant is the location of the second smallest disc, and so on.
This encoding and these configurations are as in A055661 except that the roles of pegs 1 and 2 are swapped, so ternary digit flip 1<->2, and so a(n) = A004488(A055661(n)).
(End)
LINKS
Zoran Šunić, Tree morphisms, transducers and integer sequences, arXiv:math/0612080 [math.CO], 2006, see after proposition 5.4.
PROG
(PARI) a(n) = my(v=binary(bitxor(n, n>>1)), s=(-1)^#v, d=0); for(i=1, #v, if(v[i], d=(d+s)%3, s=-s); v[i]=d); fromdigits(v, 3); \\ Kevin Ryde, Oct 21 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Ralf Stephan, May 09 2007
EXTENSIONS
Name and data corrected and extended by Kevin Ryde, Oct 21 2021
STATUS
approved