Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A086763
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A086763 Count of complete evaluations of each mapping in the trajectory of n in the mapping n-> n*3+1 if n is prime, n+1 if n is odd composite, n/2 while n even. +0
2
17, 7, 2, 5, 8, 16, 3, 7, 6, 14, 9, 9, 17, 5, 4, 12, 8, 20, 7, 16, 15, 12, 10, 11, 10, 19, 18, 18, 6, 15, 5, 14, 13, 10, 9, 21, 21, 9, 8, 3, 17, 18, 16, 14, 13, 13, 11, 13, 12, 12, 11, 11, 20, 20, 19, 20, 19, 32, 7, 16, 1, 7, 6, 16, 15, 27, 14, 12, 11, 11, 10, 23, 22, 23, 22, 11, 10, 11 (list; graph; listen)
OFFSET

2,1

PROGRAM

(PARI) \ Pari GP 2.2.6 where function isprime(n) proves primality countpxp(m, k) = { for(x=2, m, c=0; n=x; while(n > 1, if(isprime(n), n=n*k+1; c++, if(n%2<>0, n++; c++)); while(n%2==0, n/=2; c++); if(n==1 || n==31, break); ); print1(c", "); ) }

CROSSREFS

Cf. A086762.

Adjacent sequences: A086760 A086761 A086762 this_sequence A086764 A086765 A086766

Sequence in context: A040277 A109215 A040276 this_sequence A064545 A114032 A107807

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Aug 02 2003

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 October 15 09:18 EDT 2008. Contains 145015 sequences.


AT&T Labs Research