Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A165802
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A165802 Primes p with f(p), f(f(p)), ... all prime, where f(n) = (n-1)/2. Stop when f(...f(p)...) is less than 4. +0
4
2, 3, 5, 7, 11, 23, 47 (list; graph; listen)
OFFSET

1,1

EXAMPLE

(47-1)/2=23(prime);(23-1)/2=11(prime); (11-1)/2=5(prime); (5-1)/2=2.

MATHEMATICA

f[n_]:=Module[{k=n}, While[k>3, k=(k-1)/2; If[ !PrimeQ[k], Break[]]]; PrimeQ[k]]; lst={}; Do[p=Prime[n]; If[f[p], AppendTo[lst, p]], {n, 5!}]; lst

CROSSREFS

Subsequence of A165801.

Sequence in context: A030284 A068148 A036344 this_sequence A107798 A119660 A079148

Adjacent sequences: A165799 A165800 A165801 this_sequence A165803 A165804 A165805

KEYWORD

nonn,fini,full

AUTHOR

Vladimir Orlovsky (4vladimir(AT)gmail.com), Sep 28 2009

EXTENSIONS

Edited by Charles R Greathouse IV (charles.greathouse(AT)case.edu), 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