login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A126502 Number of base 7 n-digit numbers with adjacent digits differing by four or less. 1
1, 7, 43, 269, 1679, 10483, 65449, 408623, 2551187, 15928021, 99444631, 620870267, 3876326801, 24201367447, 151098247483, 943363239389, 5889771828959, 36772062710083, 229581830200249, 1433365791134783 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

COMMENTS

[Empirical] a(base,n)=a(base-1,n)+9^(n-1) for base>=4n-3; a(base,n)=a(base-1,n)+9^(n-1)-2 when base=4n-4

PROG

(S/R) stvar $[N]:(0..M-1) init $[]:=0 asgn $[]->{*} kill +[i in 0..N-2](($[i]`-$[i+1]`>4)+($[i+1]`-$[i]`>4))

CROSSREFS

Cf. Base 7 differing by three or less A126475, two or less A126394, one or less A126361.

Sequence in context: A022036 A015451 A194779 * A199483 A042213 A193705

Adjacent sequences:  A126499 A126500 A126501 * A126503 A126504 A126505

KEYWORD

nonn,base

AUTHOR

R. H. Hardin (rhhardin(AT)att.net), Dec 28 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 02:51 EST 2012. Contains 205860 sequences.