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.

A385236 Largest x such that x^2+y^2 = A001481(n), x and y are nonnegative integers.

This page as a plain text file.
%I A385236 #16 Jul 09 2025 10:17:13
%S A385236 0,1,1,2,2,2,3,3,3,4,4,3,4,5,5,5,4,5,6,6,6,5,6,7,7,6,7,7,6,8,8,8,6,8,
%T A385236 7,8,9,9,9,8,9,9,7,10,10,10,9,10,8,10,9,11,11,11,8,11,10,11,12,12,11,
%U A385236 12,10,12,11,12,9,10,13,13,13,13,12,10,13,12,13,14,14,14,11,14,12,14,13,14,15
%N A385236 Largest x such that x^2+y^2 = A001481(n), x and y are nonnegative integers.
%C A385236 A229140(n) gives smallest x such that x^2+y^2 = A001481(n), x and y are nonnegative integers.
%F A385236 a(n) = sqrt(A001481(n)) if A001481(n) is square.
%F A385236 a(n) = sqrt(A001481(n)-A229140(n)^2).
%e A385236 For n=9, A001481(9)=13=2^2+3^2, so A229140(9)=2 and a(9)=3.
%e A385236 For n=14, A001481(14)=25=3^2+4^2=0^2+5^2, so A229140(14)=0 and a(14)=5.
%o A385236 (PARI) for(n=0, 300, s=sqrtint(n); forstep(i=s, 0, -1, if(issquare(n-i*i), print1(i, ", "); break)))
%Y A385236 Cf. A001481, A229140, A283303, A283304.
%K A385236 nonn
%O A385236 1,4
%A A385236 _Zhuorui He_, Jul 08 2025