OFFSET
1,4
COMMENTS
First differs from A294888 at n = 48.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
seq[nmax_] := Module[{s = {1}, a = {0}, sum}, Do[sum = Total[Select[Divisors[n], MemberQ[s, #] &]]; If[sum <= n, AppendTo[s, n]]; AppendTo[a, sum], {n, 2, nmax}]; a]; seq[100]
PROG
(PARI) lista(nmax) = {my(c = 0, s); print1(0, ", "); for(n=2, nmax, s = sumdiv(n, d, !bittest(c, d)*d) - n; if(s > n, c+=1<<n); print1(s, ", ")); } \\ after M. F. Hasler at A181487
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Aug 11 2023
STATUS
approved