OFFSET
1,1
COMMENTS
From Amiram Eldar, Apr 27 2025: (Start)
If there is an odd term in this sequence it must be an odd perfect number (A000396). If k is an odd term then d = sigma(k)-k divides k. If d < k then sigma(k) = k + d with d being an aliquot divisor of k which is possible only if k is prime and d = 1. Therefore, d = k and k must be an odd perfect number.
This sequence is infinite because if k is a term then 2*k is also a term. The primitive terms are in A383428. (End)
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..4905 (terms below 10^11; terms 1..1000 from Harry J. Smith)
MATHEMATICA
Do[ d = Drop[ Divisors[ n ], -1 ]; l = Length[ d ]; od = 1; k = 2; While[ k <= l, If[ OddQ[ d[ [ k ] ] ], od = od + d[ [ k ] ] ]; k++ ]; If[ !PrimeQ[ n ] && IntegerQ[ n/od ], Print[ n ] ], {n, 2, 10^4} ]
Select[Range[4500], CompositeQ[#] && Divisible[#, DivisorSigma[1, #/2^IntegerExponent[#, 2]] - If[OddQ[#], #, 0]] &] (* Amiram Eldar, Apr 27 2025 *)
PROG
(PARI) { n=0; for (m=4, 10^9, if (isprime(m), next); d=divisors(m); s=1; for (i=2, numdiv(m) - 1, if (d[i]%2, s += d[i])); if (s > 0 && m%s == 0, write("b066192.txt", n++, " ", m); if (n==1000, return)) ) } \\ Harry J. Smith, Feb 05 2010
(PARI) isok(k) = if(k == 1, 0, !isprime(k) && !(k % (sigma(k >> valuation(k, 2)) - if(k%2, k)))); \\ Amiram Eldar, Apr 27 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Dec 15 2001
STATUS
approved
