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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A126511 Number of base 16 n-digit numbers with adjacent digits differing by four or less. 1
1, 16, 124, 996, 8084, 65928, 538668, 4404564, 36026044, 294702188, 2410856988, 19722778372, 161349704452, 1319986934708, 10798704179268, 88343352897012, 722730197415044, 5912600825871716, 48370539666789668, 395715727752799652 (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 16 differing by three or less A126484, two or less A126403, one or less A126370.

Sequence in context: A006215 A060633 A125353 * A067442 A000485 A007787

Adjacent sequences:  A126508 A126509 A126510 * A126512 A126513 A126514

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 17 06:20 EST 2012. Contains 205991 sequences.