|
|
A073432
|
|
Numbers n such that prime(n) + composite(n) is even.
|
|
3
|
|
|
1, 4, 8, 12, 15, 17, 21, 23, 26, 30, 33, 35, 38, 40, 44, 46, 49, 53, 55, 58, 61, 63, 66, 68, 70, 73, 77, 81, 84, 86, 88, 90, 92, 94, 97, 100, 102, 106, 108, 110, 112, 116, 118, 121, 123, 126, 129, 131, 134, 136, 140, 142, 144, 146, 150, 154, 156, 158, 160, 162, 165
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
8 is in the sequence since prime(8)=19, composite(8)=15, and their average 17 is an integer.
|
|
MATHEMATICA
|
c[x_] := FixedPoint[x+PrimePi[ # ]+1&, x] Do[s=(Prime[n]+c[n])/2; If[IntegerQ[s], Print[s]], {n, 1, 256}]
|
|
PROG
|
(PARI) print1(n=1); for(c=6, 1e3, if(isprime(c), next); n++; if(c%2, print1(", "n))) \\ Charles R Greathouse IV, Apr 03 2012
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|