login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A348303
a(n) is the largest n-digit number whose square has a digital sum equal to A348300(n).
3
7, 83, 937, 9417, 94863, 987917, 9893887, 99483667, 994927133, 9486778167, 99497231067, 999949483667, 9892825177313
OFFSET
1,1
MATHEMATICA
Array[#1 + Position[#2, Max[#2]][[-1, -1]] - 1 & @@ {#1, Map[Total@ IntegerDigits[#^2] &, Range[#1, #2]]} & @@ {10^(# - 1), 10^# - 1} &, 8] (* Michael De Vlieger, Oct 12 2021 *)
CROSSREFS
Sequence in context: A268704 A370522 A099668 * A240170 A231259 A187649
KEYWORD
nonn,base,more
AUTHOR
EXTENSIONS
a(11) from Chai Wah Wu, Nov 18 2021
a(12)-a(13) from Martin Ehrenstein, Nov 20 2021
STATUS
approved