login
A083179
a(1)=1, a(n) = smallest positive integer not included earlier such that the partial sums of a(A000040) are prime and the partial sums of a(A002808) are composite.
3
1, 2, 3, 4, 6, 5, 8, 7, 9, 10, 12, 11, 16, 14, 15, 13, 20, 17, 22, 18, 19, 23, 24, 21, 26, 25, 27, 28, 36, 29, 30, 31, 32, 33, 34, 35, 44, 38, 37, 39, 40, 42, 48, 43, 41, 45, 56, 46, 47, 49, 50, 51, 52, 53, 54, 55, 57, 59, 60, 58, 62, 61, 63, 64, 65, 67, 66, 68, 69, 71, 70, 72
OFFSET
1,2
EXAMPLE
a(2) = 2 is prime a(2) +a(3) +a(5) = 2 +3 +6 = 11.
a(4) = 4 is composite, a(4) +a(6) +a(8) + a(9) = 4 +5 + 7+ 9 = 25 is composite.
CROSSREFS
Cf. A073885.
Sequence in context: A129258 A256988 A104650 * A123503 A123717 A123718
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Apr 26 2003
EXTENSIONS
More terms from David Wasserman, Oct 26 2004
STATUS
approved