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 A241213 #49 Jan 20 2022 00:34:20 %S A241213 1,2,3,4,5,10,11,12,13,14,15,20,21,22,23,24,25,30,31,32,33,34,35,40, %T A241213 41,42,43,44,45,100,101,102,103,104,105,110,111,112,113,114,115,120, %U A241213 121,122,123,124,125,130,131,132,133,134,135,140,141,142,143,144,145 %N A241213 a(n) is built digit-by-digit (see comments for details). %C A241213 a(n) is built digit-by-digit as a_i ... a_3 a_2 a_1. %C A241213 Note that in this case, the definition of "digit" is a nonnegative integer. If i > 3, the number of digits of a_i may be greater than 1. %C A241213 Successively, we have: %C A241213 a_1 = n mod 6; %C A241213 a_2 = ((n - a_1)/primorial(2)) mod prime(2+1); %C A241213 a_3 = ((n - a_1 - a_2*primorial(2))/primorial(3)) mod prime(3+1); %C A241213 ... %C A241213 a_i = ((n - a_1 - a_2*primorial(2)-...-a_(i-1)*primorial(i-1))/primorial(i)) mod prime(i+1). %C A241213 So that finally, n = a_1 + a_2*primorial(2) + ... + a_i*primorial(i). %H A241213 Lear Young, <a href="/A241213/b241213.txt">Table of n, a(n) for n = 1..100000</a> %e A241213 a(2287) = 10611. %e A241213 10611 is built digit-by-digit as a_4 a_3 a_2 a_1 = 10 6 1 1. %e A241213 And a_1 + a_2*primorial(2) + a_3*primorial(3) + a_4*primorial(4) = 1 + 1*6 + 6*30 + 10*210 = 2287. %e A241213 (The definition of "digit" is a nonnegative integer. See comments for how to get a_1, a_2, a_3, a_4.) %o A241213 (Sage) %o A241213 Pr = Primes() %o A241213 c = oeis(2110)[:10] %o A241213 def bjz(a): %o A241213 d = len(str(a)) + 1 %o A241213 b = [0] * (d) %o A241213 b[0] = a % 6 %o A241213 s = 0 %o A241213 for x in range(1, d): %o A241213 if x > 1: %o A241213 s += c[x] * b[x-1] %o A241213 b[x] = ((a - b[0] - s) / c[x+1] ) % Pr.unrank(x+1) %o A241213 return int(''.join(map(str, b[::-1]))) %o A241213 [ bjz(x) for x in range(1, 101)] # _Lear Young_, Apr 17 2014 %K A241213 nonn,base %O A241213 1,2 %A A241213 _Lear Young_, Apr 17 2014