OFFSET
0,3
COMMENTS
Equivalently, this sequence gives positions of records in A276150.
LINKS
FORMULA
A276150(a(n)) = n.
a(n) = A060735(n)-1. - Antti Karttunen, Nov 14 2024
EXAMPLE
The first terms, alongside their primorial base representation, are:
n a(n) prim(a(n))
-- ---- ----------
0 0 0
1 1 1
2 3 11
3 5 21
4 11 121
5 17 221
6 23 321
7 29 421
8 59 1421
9 89 2421
10 119 3421
11 149 4421
12 179 5421
13 209 6421
14 419 16421
15 629 26421
PROG
(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))
CROSSREFS
KEYWORD
nonn,base,changed
AUTHOR
Rémy Sigrist, Apr 05 2021
STATUS
approved