OFFSET
1,2
COMMENTS
All the terms are arithmetic numbers (A003601).
All the terms are odd numbers.
All the odd primes are terms.
There are infinitely many composite numbers in this sequence. For example, if p is a prime of the form 6*k-1 (A007528), then 3*p is a term. Also, if p is a prime of the form 6*k + 1 (A002476), then p^2 is a term.
prime(n)^k is a term for k = 0..A359262(n).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
15 is a term since its divisors are {1, 3, 5, 15}, 1/1 =1, (1 + 3)/2 = 2, (1 + 3 + 5)/3 = 3, and (1 + 3 + 5 + 15)/4 = 6 are all integers.
MATHEMATICA
q[n_] := AllTrue[Accumulate[(d = Divisors[n])]/Range[Length[d]], IntegerQ]; Select[Range[1, 200, 2], q]
PROG
(PARI) is(n) = {my(s = k = 0); fordiv(n, d, k++; s += d; if(s%k, return(0))); 1; }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Dec 23 2022
STATUS
approved