Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A146949
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A146949 Primes with a prime number of partitions into prime parts. +0
1
5, 7, 17, 19, 73, 103, 263, 307, 653, 673, 743, 823, 839, 1109, 1327, 2647, 4391, 4621, 4967, 6389, 6661, 6829, 6871, 12227, 12269, 18839, 19861, 20663 (list; graph; listen)
OFFSET

1,1

FORMULA

Prime number 7 = 5 + 2 = 3 + 2 + 2, with 3 (prime number) partitions into prime parts. So, 7 is in the sequence. Similarly with 17 = 13+2+2 = 11+3+3 = 11+2+2+2 = 7+7+3 = 7+5+5 = 7+5+3+2 = 7+3+3+2+2 = 7+2+2+2+2+2 = 5+5+5+2 = 5+5+3+2+2 = 5+3+3+3+3 = 5+3+3+2+2+2 = 5+2+2+2+2+2+2 = 3+3+3+3+3+2 = 3+3+3+2+2+2+2 = 3+2+2+2+2+2+2+2, having 17 (prime number) partitions into prime parts.

MAPLE

g:=1/(product(1-x^ithprime(j), j=1..500)): gser:= series(g, x=0, 3575): a:= proc (n) if isprime(coeff(gser, x, ithprime(n)))=true then ithprime(n) else end if end proc: seq(a(n), n=1..3570); [From Emeric Deutsch (deutsch(AT)duke.poly.edu), Nov 09 2008]

Contribution from Alois P. Heinz (heinz(AT)hs-heilbronn.de), Jun 26 2009: (Start)

b:= proc(n, i) local r, m; if n<0 or i<2 then 0 elif n<6 or i<6 then m:= iquo (n, 30, 'r'); (5+15*m+r)*m+ [1, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 7, 8, 9, 9, 11, 11, 12, 13, 14, 15, 16, 17, 18, 19][r+1] else b(n, i):= b(n-i, i) +b(n, prevprime(i)) fi end:

a:= proc(n) local k; k:= `if` (n=1, 3, nextprime (a(n-1))); while not (isprime (b(k, k))) do k:= nextprime(k) od; a(n):= k end: seq (a(n), n=1..15); (End)

CROSSREFS

A056768

Sequence in context: A128490 A023519 A128491 this_sequence A048700 A164120 A043879

Adjacent sequences: A146946 A146947 A146948 this_sequence A146950 A146951 A146952

KEYWORD

more,nonn

AUTHOR

Lekraj Beedassy (blekraj(AT)yahoo.com), Nov 03 2008

EXTENSIONS

Edited. - Lekraj Beedassy (blekraj(AT)yahoo.com), Nov 08 2008

More terms from Emeric Deutsch (deutsch(AT)duke.poly.edu), Nov 09 2008

a(17) - a(28) from Alois P. Heinz (heinz(AT)hs-heilbronn.de), Jun 26 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 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research