OFFSET
1,1
COMMENTS
A303556 is a subsequence of this sequence.
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..1000
EXAMPLE
Divisors of 12 are 1, 2, 3, 4, 6, 12 and the sum of the numbers between 2 and 6 is 3 + 4 + 5 = 12.
Divisors of 108 are 1, 2, 3, 4, 6, 9, 12, 18, 27, 36, 54, 108 and the sum of the numbers between 9 and 18 is 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 = 108.
MAPLE
with(numtheory): P:=proc(n) local a, j, k; a:=sort([op(divisors(n))]);
for j from 1 to nops(a)-1 do for k from j+1 to nops(a) do
if n=((a[k]-1)*a[k]-a[j]*(a[j]+1))/2 then RETURN(n); fi;
od; od; end: seq(P(i), i=2..10^4);
MATHEMATICA
Select[Range[5000], MemberQ[Union@ Map[Total@ Range[#1 + 1, #2 - 1] & @@ # &, Subsets[Divisors@ #, {2}]], #] &] (* Michael De Vlieger, Jan 18 2019 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Jan 15 2019
STATUS
approved