Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A146969
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A146969 A prime sequence form based on A003602:a(1)=3;a(2)=1; a(n) = If[PrimeQ[n], (n + 1)/2, a[Floor[n/2]] +0
1
3, 1, 2, 1, 3, 2, 4, 1, 1, 3, 6, 2, 7, 4, 4, 1, 9, 1, 10, 3, 3, 6, 12, 2, 2, 7, 7, 4, 15, 4, 16, 1, 1, 9, 9, 1, 19, 10, 10, 3, 21, 3, 22, 6, 6, 12, 24, 2, 2, 2, 2, 7, 27, 7, 7, 4, 4, 15, 30, 4, 31, 16, 16, 1, 1, 1, 34, 9, 9, 9, 36, 1, 37, 19, 19, 10, 10, 10, 40, 3, 3, 21, 42, 3, 3, 22, 22, 6, 45, 6 (list; graph; listen)
OFFSET

1,1

COMMENT

I modified Robert Wilson's Mathematica code until I got a working chaotic sequence.

FORMULA

a(1)=3;a(2)=1; a(n) = If[PrimeQ[n], (n + 1)/2, a[Floor[n/2]].

MATHEMATICA

a[1] = 3; a[2] = 1; a[n_] := a[n] = If[PrimeQ[n], (n + 1)/2, a[Floor[n/2]]]; Table[a[n], {n, 1, 100}]

CROSSREFS

Sequence in context: A160097 A029351 A035115 this_sequence A090270 A029329 A166866

Adjacent sequences: A146966 A146967 A146968 this_sequence A146970 A146971 A146972

KEYWORD

nonn

AUTHOR

Roger L. Bagula (rlbagulatftn(AT)yahoo.com), Nov 03 2008

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 December 10 00:48 EST 2009. Contains 170565 sequences.


AT&T Labs Research