cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A303556 Numbers equal to the sum of the numbers between two of their consecutive divisors.

This page as a plain text file.
%I A303556 #13 Feb 14 2023 12:56:51
%S A303556 490,55930,98648,222560,396550,584988,838448,1173102,2345720,2855660,
%T A303556 4150120,4781502,5557300,6072460,6115122,6688416,6715280,9390290,
%U A303556 9486950,11691498,12704510,13331240,16035760,17325700,19377050,20055070,20859410,29651748,34516160,35040352
%N A303556 Numbers equal to the sum of the numbers between two of their consecutive divisors.
%C A303556 If also the two consecutive divisors were added to the sum, the first terms would be 18, 55120, 1034540, 1386350, 1675960, ...
%e A303556 a(1) = 490 because 14 and 35 are two consecutive divisors of 490 and the sum of the numbers from 15 to 34 is equal to 490 itself.
%e A303556 a(7) = 838448 because 1807 and 2224 are two consecutive divisors of 838448 and the sum of the numbers from 1808 to 2223 is equal to 838448 itself.
%p A303556 with(numtheory): P:=proc(q) local a,k,n;
%p A303556 for n from 1 to q do if not isprime(n) then a:=sort([op(divisors(n))]);
%p A303556 for k from 1 to tau(n)-1 do if n=((a[k+1]-1)*a[k+1]-a[k]*(a[k]+1))/2
%p A303556 then print(n); break; fi; od; fi; od; end: P(10^9);
%t A303556 Select[Range[351*10^5],MemberQ[Total[Range[#[[1]]+1,#[[2]]-1]]&/@Partition[ Divisors[ #],2,1],#]&] (* _Harvey P. Dale_, Feb 14 2023 *)
%o A303556 (PARI) isok(n) = my(d=divisors(n)); vecsearch(vecsort(vector(#d-1, k, ((d[k+1]-1)*d[k+1]-d[k]*(d[k]+1))/2),,8), n); \\ _Michel Marcus_, Apr 27 2018
%Y A303556 Cf. A055233.
%K A303556 nonn
%O A303556 1,1
%A A303556 _Paolo P. Lava_, Apr 26 2018
%E A303556 a(10)-a(30) from _Giovanni Resta_, Apr 27 2018