login
A125333
Number of base 23 circular n-digit numbers with adjacent digits differing by 3 or less.
0
1, 23, 149, 767, 4621, 28193, 176297, 1117041, 7154253, 46194005, 300221819, 1961587475, 12873380521, 84800014153, 560377791731, 3713279813807, 24664451887709, 164170230029821, 1094761428071549, 7312336791110657
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: A231207 A142902 A362315 * A126491 A142044 A142935
KEYWORD
nonn,base
AUTHOR
R. H. Hardin, Dec 28 2006
STATUS
approved