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.

A245625 Sequence of distinct least nonnegative numbers such that the average of the first n terms is a square.

This page as a plain text file.
%I A245625 #14 Nov 07 2014 00:11:41
%S A245625 0,2,1,13,4,34,9,65,16,106,25,157,36,218,49,289,64,370,81,461,100,562,
%T A245625 121,673,144,794,169,925,196,1066,225,1217,256,1378,1514,324,1693,361,
%U A245625 1882,400,2081,441,2290,484,2509,529,2738,576,2977,625,3226,676,3485,729,3754,784,4033,841
%N A245625 Sequence of distinct least nonnegative numbers such that the average of the first n terms is a square.
%o A245625 (PARI) v=[]; n=0; while(n<10^4, num=(vecsum(v)+n); if(num%(#v+1)==0&&vecsearch(vecsort(v), n)==0, for(i=0, n, if(i^2>(num/(#v+1)), break); if(i^2==(num/(#v+1)), print1(n, ", "); v=concat(v, n); n=0; break))); n++)
%Y A245625 Cf. A085047.
%K A245625 nonn
%O A245625 1,2
%A A245625 _Derek Orr_, Nov 05 2014