Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A125295
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A125295 Number of different non-self-crossing ways of moving a tower of Hanoi from one peg onto another peg. +0
1
1, 2, 12, 1872, 6563711232, 282779810171805015122254036992, 22612323802416302740572466532905158028496454353087246911545156210129751385945830\ 223511552 (list; graph; listen)
OFFSET

0,2

COMMENT

In other words, a sequence of moves starting with all disks on the starting peg, ending with all disks on the destination peg and never more than once producing the same distribution of disks among the pegs (assuming 3 pegs).

LINKS

Wikipedia, Tower of Hanoi

FORMULA

a(n+1)=(a(n)^2)(a(n)+1)

log a(n) grows somewhat faster than O(3^n).

MAPLE

f:=proc(n) option remember; if n = 0 then 1 else f(n-1)^2*(f(n-1)+1); fi; end;

PROGRAM

(Scheme)

(define (next n) (* n n (+ n 1)))

(define (list-elements nr-of-elements n0 next)

(let list-elements ((i 0) (n n0))

(show i n)

(let ((i (add1 i)))

(if (< i nr-of-elements) (list-elements i (next n))))))

(define (show i n) (printf "N(~a)=~a~n~n" i n))

(list-elements 6 1 next)

CROSSREFS

Sequence in context: A085912 A085895 A090904 this_sequence A050649 A003042 A000887

Adjacent sequences: A125292 A125293 A125294 this_sequence A125296 A125297 A125298

KEYWORD

nonn

AUTHOR

Jos Koot (jos.koot(AT)telefonica.net), Dec 08 2006

EXTENSIONS

Checked by N. J. A. Sloane (njas(AT)research.att.com), Feb 10 2007. The next term is too large to include.

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 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research