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 A358986 #14 Dec 09 2022 10:53:32 %S A358986 10,28,207,548,3966,10462,75435,198890,1433489,3779246 %N A358986 a(n) is the number of numbers of the form k + reverse(k) for at least one number k < 10^n. %C A358986 This sequence differs from the partial sums of A358985; see the Example section. %e A358986 There are 10 numbers of the form k + reverse(k) for 1-digit numbers k -- 0, 2, 4, 6, 8, 10, 12, 14, 16, and 18 -- so a(1) = 10. %e A358986 There are 18 numbers of the form k + reverse(k) for 2-digit numbers k -- 11, 22, 33, 44, 55, 66, 77, 88, 99, 110, 121, 132, 143, 154, 165, 176, 187, and 198 -- and none of these 18 numbers are among the 10 numbers counted in a(1), so a(2) = 10 + 18 = 28. %e A358986 There are 180 numbers of the form k + reverse(k) for 3-digit numbers k, but exactly one of those -- 121 = 110 + reverse(110) = 110 + 11 -- is also a number of the form k + reverse(k) for a 2-digit number k: e.g., 29 + reverse(29) = 29 + 92 = 121. So a(3) = 10 + 18 + 180 - 1 = 207. %o A358986 (Python) %o A358986 def A358986(n): %o A358986 kset = set() %o A358986 for i in range(1,10**(n-1)): %o A358986 for j in range(int((s:=str(i))[0])+1): %o A358986 kset.add(10*i+j+int(str(j)+s[::-1])) %o A358986 return 10+len(kset) # _Chai Wah Wu_, Dec 09 2022 %Y A358986 Cf. A067030, A358985. %K A358986 nonn,base,more %O A358986 1,1 %A A358986 _Jon E. Schoenfield_, Dec 08 2022 %E A358986 a(8)-a(10) from _Chai Wah Wu_, Dec 09 2022