login
A125334
Number of base 24 circular n-digit numbers with adjacent digits differing by 3 or less.
0
1, 24, 156, 804, 4852, 29644, 185628, 1177732, 7552820, 48830268, 317759976, 2078811792, 13659968764, 90095534852, 596129318920, 3955237896544, 26305462766900, 175320838970108, 1170655876964172, 7829668140011476
OFFSET
0,2
COMMENTS
[Empirical] a(base,n)=a(base-1,n)+A025012(n+1) for base>=3.int(n/2)+1
PROG
(S/R) stvar $[N]:(0..M-1) init $[]:=0 asgn $[]->{*} kill +[i in 0..N-1](($[i]`-$[(i+1)mod N]`>3)+($[(i+1)mod N]`-$[i]`>3))
CROSSREFS
Sequence in context: A004308 A008663 A277984 * A126492 A222002 A240268
KEYWORD
nonn,base
AUTHOR
R. H. Hardin, Dec 28 2006
STATUS
approved