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.
%I A187279 #18 Jan 03 2021 01:01:52 %S A187279 1,1,1,1,1,2,1,1,1,2,1,2,1,2,3,1,1,2,1,2,3,2,1,2,1,2,1,2,1,2,1,1,2,2, %T A187279 3,2,1,2,3,2,1,2,1,2,3,2,1,2,1,2,3,3,1,2,3,2,3,2,1,2,1,2,3,1,2,2,1,2, %U A187279 3,3,1,2,1,2,3,3,4,4,1,2,1,2,1,2,3,2,3,3,1,2,3,4,3,2,3,2,1,2,3,3,1,2,1,2,3,2,1,2,1,2 %N A187279 a(n) is the least number of terms needed to represent n as a sum of powers of the same prime. %C A187279 A000961 gives all n such that a(n)=1. A024619 gives all n such that a(n) > 1. %C A187279 If a(n) < m, let p be a prime such that n is a sum of < m powers of p. Then for any positive integers c_1, ... c_m that add up to n, p divides the m-nomial coefficient n!/(c_1!*c_2!*...*c_m!). If a(n) >= m then there is no prime that divides all such coefficients. %H A187279 Alois P. Heinz, <a href="/A187279/b187279.txt">Table of n, a(n) for n = 1..10000</a> %H A187279 Mathematics StackExchange, <a href="https://math.stackexchange.com/questions/2962334/the-largest-number-y-in-which-xxyx2/2962386#2962386">The largest number y in which (x!)^(x+y)|(x^2)!</a> %e A187279 a(15) = 3 because 15 can be expressed with powers of 3 as 3^2+3^1+3^1, or with powers of 7 as 7^1+7^1+7^0, or with powers of 13 as 13^1+13^0+13^0, but there is no such expression with fewer than three terms. %p A187279 with(numtheory): %p A187279 b:= proc(n, p) local c, m; m:=n; c:=0; %p A187279 while m>0 do c:= c+irem(m, p, 'm') od; c %p A187279 end: %p A187279 a:= n-> min(seq(b(n, ithprime(i)), i=1..pi(n+1))): %p A187279 seq(a(n), n=1..100); # _Alois P. Heinz_, Nov 06 2013 %t A187279 Join[{1}, Table[Min[Plus @@@ IntegerDigits[n, Prime[Range[PrimePi[n]]]]], {n, 2, 110}]] (* _T. D. Noe_, Mar 08 2011 *) %K A187279 nonn,easy %O A187279 1,6 %A A187279 _David Wasserman_, Mar 07 2011