Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A133923
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A133923 a(1)=1, and for n>1, a(n) = a(n-1)/2, if a(n-1) is divisible by 2, otherwise a(n) = A000005(n*a(n-1)). +0
1
1, 2, 1, 3, 4, 2, 1, 4, 2, 1, 2, 1, 2, 1, 4, 2, 1, 6, 3, 12, 6, 3, 4, 2, 1, 4, 2, 1, 2, 1, 2, 1, 4, 2, 1, 9, 6, 3, 6, 3, 4, 2, 1, 6, 3, 8, 4, 2, 1, 6, 3, 12, 6, 3, 8, 4, 2, 1, 2, 1, 2, 1, 6, 3, 8, 4, 2, 1, 4, 2, 1, 12, 6, 3, 9, 18, 9, 16, 8, 4, 2, 1, 2, 1, 4, 2, 1, 8, 4, 2, 1, 6, 3, 8, 4, 2, 1, 6, 3, 18 (list; graph; listen)
OFFSET

1,2

COMMENT

The formula could be generalized to a class of sequences as a(n)= A000005(A*a(n-1)+B) if a(n-1) is not divisible by C, else a(n)= a(n-1)/C, where A, B, C are integers. In this case we have A=n, B=0 and C=2.

PROGRAM

(MIT Scheme:) (define (A133923 n) (cond ((< n 2) n) ((even? (A133923 (-1+ n))) (/ (A133923 (-1+ n)) 2)) (else (A000005 (* n (A133923 (-1+ n)))))))

CROSSREFS

Cf. A000005.

Sequence in context: A049400 A106382 A004741 this_sequence A145034 A125158 A112384

Adjacent sequences: A133920 A133921 A133922 this_sequence A133924 A133925 A133926

KEYWORD

nonn

AUTHOR

Ctibor O. ZIZKA (ctibor.zizka(AT)seznam.cz), Jan 07 2008

EXTENSIONS

Edited, corrected, extended and Scheme-code added by Antti Karttunen (His-Firstname.His-Surname(AT)gmail.com), Oct 05 2009

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