Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A126511
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A126511 Number of base 16 n-digit numbers with adjacent digits differing by four or less. +0
2
1, 16, 124, 996, 8084, 65928, 538668, 4404564, 36026044, 294702188, 2410856988, 19722778372, 161349704452, 1319986934708, 10798704179268, 88343352897012, 722730197415044, 5912600825871716, 48370539666789668, 395715727752799652 (list; graph; listen)
OFFSET

0,2

COMMENT

[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

PROGRAM

(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 this_sequence A067442 A000485 A007787

Adjacent sequences: A126508 A126509 A126510 this_sequence A126512 A126513 A126514

KEYWORD

nonn

AUTHOR

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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 24 23:16 EST 2009. Contains 167481 sequences.


AT&T Labs Research