OFFSET
1,1
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..1500
Paolo P. Lava, First 1500 terms with the number of the first primes
EXAMPLE
48 mod 2 + 48 mod 3 + 48 mod 5 + 48 mod 7 + 48 mod 11 + 48 mod 13 + 48 mod 17 + 48 mod 19 + 48 mod 23 = 0 + 0 + 3 + 6 + 4 + 9 + 14 + 10 + 2 = 48, so 48 is a term.
MAPLE
P:=proc(q) local a, b, k, n; for n from 2 to q do a:=0; b:=2;
while n>a do a:=a+(n mod b); b:=nextprime(b); od;
if n=a then print(n); fi; od; end: P(10^9);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Jun 21 2016
STATUS
approved