login
A125395
Number of base 32 circular n-digit numbers with adjacent digits differing by 5 or less.
0
1, 32, 322, 2582, 24262, 231582, 2264020, 22435984, 224750110, 2269946654, 23077019532, 235861678040, 2421311651824, 24948931934504, 257880638608460, 2672736469957992, 27765463773130590, 289023466154180810
OFFSET
0,2
COMMENTS
[Empirical] a(base,n)=a(base-1,n)+F(5) for base>=5.int(n/2)+1 and F(d) is the largest coefficient in (1+x+...+x^(2d))^n
PROG
(S/R) stvar $[N]:(0..M-1) init $[]:=0 asgn $[]->{*} kill +[i in 0..N-1](($[i]`-$[(i+1)mod N]`>5)+($[(i+1)mod N]`-$[i]`>5))
CROSSREFS
Sequence in context: A095152 A087342 A083468 * A126553 A368621 A221661
KEYWORD
nonn,base
AUTHOR
R. H. Hardin, Dec 28 2006
STATUS
approved