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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A126378 Number of base 24 n-digit numbers with adjacent digits differing by one or less. 4
1, 24, 70, 206, 608, 1798, 5324, 15780, 46806, 138918, 412508, 1225432, 3641690, 10825628, 32190154, 95741294, 284820048, 847475910, 2522096172, 7507000776, 22347852666, 66537181776, 198128815230, 590039959434, 1757365514652 (list; graph; refs; listen; history; 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

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: A051876 A069174 A124717 * A006352 A143337 A183006

Adjacent sequences:  A126375 A126376 A126377 * A126379 A126380 A126381

KEYWORD

nonn,base

AUTHOR

R. H. Hardin (rhhardin(AT)att.net), Dec 26 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 15:57 EST 2012. Contains 206050 sequences.