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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A126372 Number of base 18 n-digit numbers with adjacent digits differing by one or less. 4
1, 18, 52, 152, 446, 1312, 3866, 11406, 33684, 99552, 294410, 871138, 2578808, 7636982, 22624216, 67043480, 198726606, 589195584, 1747255194, 5182477842, 15374283866, 45616475418, 135366696658, 401753608184, 1192506493748 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

[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

LINKS

Table of n, a(n) for n=0..24.

PROG

(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: A175815 A069130 A124711 * A133356 A052495 A052902

Adjacent sequences:  A126369 A126370 A126371 * A126373 A126374 A126375

KEYWORD

nonn,base

AUTHOR

R. H. Hardin, Dec 26 2006

STATUS

approved

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 May 25 04:02 EDT 2013. Contains 225634 sequences.