OFFSET
1,2
COMMENTS
2^n is a term for all n. All perfect numbers are terms.
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..463
MAPLE
for n from 1 to 900 do if(A109883(n)=0 or type(n/A109883(n), integer))then print(n); fi:od: # Nathaniel Johnston, Apr 15 2011
MATHEMATICA
With[{s = Table[Catch@ Fold[If[#1 < #2, Throw[#1], #1 - #2] &, n, Divisors@ n], {n, 10^3}]}, Select[MapIndexed[{First@ #2, #1 /. 0 -> 1} &, s], Divisible[#1, #2] & @@ # &][[All, 1]]] (* Michael De Vlieger, Aug 17 2017, after Bobby R. Treat at A109883 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Amarnath Murthy, Jul 11 2005
EXTENSIONS
Offset, a(11), and a(12) corrected by, and a(13) - a(52) from Nathaniel Johnston, Apr 15 2011
STATUS
approved