Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A126363
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A126363 Number of base 9 n-digit numbers with adjacent digits differing by one or less. +0
5
1, 9, 25, 71, 203, 583, 1679, 4845, 14001, 40503, 117263, 339699, 984515, 2854281, 8277153, 24007543, 69642819, 202046535, 586220911, 1700972653, 4935747673, 14322646039, 41562779655, 120613013891, 350017652003, 1015758270153 (list; graph; listen)
OFFSET

0,2

COMMENT

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

PROGRAM

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

CROSSREFS

Sequence in context: A049740 A111440 A077118 this_sequence A036836 A125997 A110970

Adjacent sequences: A126360 A126361 A126362 this_sequence A126364 A126365 A126366

KEYWORD

nonn

AUTHOR

Ron Hardin (rhh(AT)cadence.com), Dec 26 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 August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research