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 A343048 #12 Nov 14 2024 08:21:48 %S A343048 0,1,3,5,11,17,23,29,59,89,119,149,179,209,419,629,839,1049,1259,1469, %T A343048 1679,1889,2099,2309,4619,6929,9239,11549,13859,16169,18479,20789, %U A343048 23099,25409,27719,30029,60059,90089,120119,150149,180179,210209,240239,270269 %N A343048 a(n) is the least number whose sum of digits in primorial base equals n. %C A343048 Equivalently, this sequence gives positions of records in A276150. %H A343048 Rémy Sigrist, <a href="/A343048/b343048.txt">Table of n, a(n) for n = 0..10000</a> %H A343048 <a href="/index/Pri#primorialbase">Index entries for sequences related to primorial base</a> %F A343048 A276150(a(n)) = n. %F A343048 a(n) = A060735(n)-1. - _Antti Karttunen_, Nov 14 2024 %e A343048 The first terms, alongside their primorial base representation, are: %e A343048 n a(n) prim(a(n)) %e A343048 -- ---- ---------- %e A343048 0 0 0 %e A343048 1 1 1 %e A343048 2 3 11 %e A343048 3 5 21 %e A343048 4 11 121 %e A343048 5 17 221 %e A343048 6 23 321 %e A343048 7 29 421 %e A343048 8 59 1421 %e A343048 9 89 2421 %e A343048 10 119 3421 %e A343048 11 149 4421 %e A343048 12 179 5421 %e A343048 13 209 6421 %e A343048 14 419 16421 %e A343048 15 629 26421 %o A343048 (PARI) a(n) = my (v=0, pp=1); forprime (p=2, oo, if (n==0, return (v), my (d=min(p-1, n)); n-=d; v+=d*pp; pp*=p)) %Y A343048 Cf. A200748, A276150. %Y A343048 One less than A060735. %Y A343048 Cf. also A372559. %K A343048 nonn,base %O A343048 0,3 %A A343048 _Rémy Sigrist_, Apr 05 2021