login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A124044
Number of ways to express 4n+3 as the sum of an odd square and twice a prime.
1
0, 1, 1, 2, 1, 2, 1, 2, 3, 2, 1, 3, 1, 2, 3, 3, 1, 3, 2, 0, 4, 4, 2, 4, 1, 2, 4, 2, 2, 3, 2, 3, 4, 3, 1, 6, 3, 1, 4, 3, 1, 6, 2, 3, 3, 4, 2, 3, 4, 1, 6, 4, 1, 6, 2, 2, 7, 3, 2, 4, 4, 2, 4, 4, 2, 6, 2, 2, 4, 3, 3, 6, 1, 2, 6, 5, 3, 5, 4, 1, 5, 6, 1, 6, 2, 3, 6, 3, 2, 4, 4, 3, 6, 5, 1, 9, 4, 2, 8, 3, 2
OFFSET
0,4
COMMENTS
Is there any n > 19 for which a(n) = 0? There are no others below 50000.
No others below 10^9. Heuristics suggest there are no more. - Charles R Greathouse IV, Sep 13 2013
REFERENCES
Underwood Dudley, "Mathematical Cranks", Mathematical Association of America 1992, p. 240.
Sci.math thread "Conjecture in 'Mathematical Cranks'", November 2006.
EXAMPLE
4*3 + 3 = 15 = 1^2 + 2*7 = 3^2 + 2*3, so a(3) = 2.
MAPLE
f:= n -> nops(select(isprime, [seq]((4*n+3-(2*i+1)^2)/2, i=0..floor((sqrt(4*n+3)-1)/2)))): [seq](f(n), n=0..100);
CROSSREFS
Sequence in context: A217581 A366521 A348581 * A059981 A033676 A095165
KEYWORD
easy,nonn
AUTHOR
Robert Israel, Nov 02 2006
STATUS
approved