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.

A076107 First of n consecutive integers whose sum is a positive n-th power, or 0 if no such integers exist.

This page as a plain text file.
%I A076107 #17 Jul 10 2025 16:03:30
%S A076107 1,0,8,0,623,119,117646,0,2183,976558,25937424596,0,23298085122475,
%T A076107 48444505197,29192926025390618,0,48661191875666868473,21523352,
%U A076107 104127350297911241532832,0,278218429446951548637196391
%N A076107 First of n consecutive integers whose sum is a positive n-th power, or 0 if no such integers exist.
%C A076107 No sum exists precisely when n == 0 (mod 4). a(2) = 0 is a legitimate value.
%C A076107 The sum is given by A076108(n) = A076109(n)^n for n != 0 (mod 4).
%C A076107 a(p) = p^(p-1) - (p-1)/2 for prime p.
%F A076107 a(n) = A076108(n)/n - (n-1)/2 for n != 0 (mod 4).
%F A076107 a(4k)=0; otherwise a(n) = (2*A076108(n)/n - n + 1)/2 = (2*p1^n*...*pm^n/n - n + 1)/2 where p1, ..., pm are all distinct odd primes dividing n. - _Max Alekseyev_, Jun 10 2005
%e A076107 a(3) = 8 as 8+9+10 = 27 = 3^3. a(6) = 119 as 119+120+...+124 = 729 = 3^6.
%o A076107 (PARI) for(n=1,30,t=n*(n-1)/2;f=0;for(r=1,10^4,if((r^n-t)%n==0,f=(r^n-t)/n;break));print1(f","))
%o A076107 (PARI) {A076107(n)=if(n%4==0,return(0));m=n;if(m%2==0,m\=2);f=factorint(m)[,1];p=1;(2*prod(i=1,length(f),f[i])^n/n-n+1)/2} (Alekseyev)
%Y A076107 Cf. A076108, A076109.
%K A076107 nonn
%O A076107 1,3
%A A076107 _Amarnath Murthy_, Oct 08 2002
%E A076107 Corrected and extended by _Ralf Stephan_, Mar 30 2003
%E A076107 Revised by _Max Alekseyev_ and _David W. Wilson_, Jun 10 2005
%E A076107 More terms from _Max Alekseyev_, Jun 10 2005