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 A131668 #36 Mar 13 2025 02:54:27 %S A131668 1,3,5,7,9,29,49,69,89,199,399,599,799,999,2999,4999,6999,8999,19999, %T A131668 39999,59999,79999,99999,299999,499999,699999,899999,1999999,3999999, %U A131668 5999999,7999999,9999999,29999999,49999999,69999999,89999999,199999999 %N A131668 Smallest number whose sum of digits is 2n+1. %C A131668 Numbers which can't be represented as the sum of two numbers with the same sum of digits in base 10 (according to _Daniel Starodubtsev_). More generally, this definition and the definition from the name of this sequence matches for any even base. - _Mikhail Kurkov_, May 19 2019 [verification needed] %H A131668 <a href="/index/Rec#order_10">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,0,0,0,0,0,0,100,-100). %F A131668 a(n) = h(n,10)*10^g(n,10)-1, with f(n,k) = floor((n+1)/(k-1)) - floor(n/(k-1)), g(n,k) = floor(2*(n+1)/(k-1)) - f(n,k), h(n,k) = 2*(n+1) - (k-1)*g(n,k). - _Mikhail Kurkov_, May 19 2019 %e A131668 For n=0, the least number with sum of digits 2*0+1=1 is 1, so a(0)=1. %o A131668 (PARI) a(n) = {my(k=0); while (sumdigits(k) != 2*n+1, k++); k;} \\ _Michel Marcus_, May 19 2019 %o A131668 (PARI) a(n) = if(n<5, return(2*n+1)); n-=5;[30, 50, 70, 90, 200, 400, 600, 800, 1000][n%9+1] * 100^(n\9)-1 \\ _David A. Corneth_, May 19 2019 %Y A131668 Cf. A051885, A133296. %K A131668 nonn,base,easy %O A131668 0,2 %A A131668 _Paul Curtz_, Oct 03 2007