The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A355484 a(n) is the least positive number that can be represented in exactly n ways as 2*p+q where p and q are primes. 1
1, 6, 9, 21, 17, 33, 45, 51, 75, 99, 111, 93, 105, 135, 153, 201, 165, 249, 231, 237, 321, 225, 273, 363, 411, 393, 285, 315, 471, 483, 435, 405, 465, 555, 681, 495, 783, 675, 873, 849, 963, 1729, 585, 525, 897, 795, 1041, 915, 735, 855, 1191, 825, 765, 1095, 975, 1005, 1035, 1125, 1311, 1407 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
a(n) is the least number k such that A046926(k) = n.
LINKS
EXAMPLE
a(3) = 21 because 21 can be written as 2*p+q with p and q prime in exactly 3 ways, namely 21 = 2*2+17 = 2*5+11 = 2*7+7, and no smaller number works.
MAPLE
M:= 3000: # to use primes up to M
P:= select(isprime, [2, seq(i, i=3..M, 2)]): nP:= nops(P):
A:= Vector(M):
for i from 1 do
p:= P[i];
if 2*p >= M then break fi;
for j from 1 to nP do
q:= P[j];
v:= 2*p+q;
if v > M then break fi;
A[v]:= A[v]+1;
od od:
K:= max(A):
V:= Array(0..K+1):
for i from 1 to M do
if V[A[i]] = 0 then V[A[i]]:= i fi
od:
L:= min(select(t -> V[t] = 0, [$1..K+1])):
convert(V[0..L-1], list);
CROSSREFS
Sequence in context: A154783 A096546 A357840 * A358222 A165717 A239874
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Jul 03 2022
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 May 19 19:45 EDT 2024. Contains 372703 sequences. (Running on oeis4.)