login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A084440 Number of ways to write the n-th prime as 1+p+p^k, p prime and k>0. 6
0, 0, 1, 2, 2, 1, 0, 1, 1, 0, 2, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
a(A084441(n))>0, a(A084442(n))=1, a(A084443(n))=0.
LINKS
EXAMPLE
a(11)=2: prime(11) = 31 = 1+5+5^2 = 1+3+3^3.
MAPLE
N:= 200:
V:= Vector(N):
P:= [seq(ithprime(i), i=1..N)]:
for i from 1 to N do
p:= P[i];
for k from 1 do
q:= 1+p+p^k;
if q > P[N] then break fi;
r:= ListTools:-BinarySearch(P, q);
if r > 0 then V[r]:= V[r]+1 fi;
od od:
convert(V, list); # Robert Israel, Dec 13 2023
CROSSREFS
Sequence in context: A287397 A364204 A111407 * A179287 A016372 A016342
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 26 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)