OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A171397(prime(n)). - Michel Marcus, Aug 31 2024
EXAMPLE
13_10 = 11+2 -> 12_11, so 5th term is 12.
MAPLE
a:= n-> (l-> add(l[i]*11^(i-1), i=1..nops(l)))(convert(ithprime(n), base, 10)):
seq(a(n), n=1..56); # Alois P. Heinz, Aug 30 2024
PROG
(Python)
from sympy import prime
def A031216(n): return int(str(prime(n)), 11) # Chai Wah Wu, Aug 30 2024
(PARI) a(n) = fromdigits(digits(prime(n)), 11); \\ Michel Marcus, Aug 31 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
a(25) corrected by Sean A. Irvine, Apr 16 2020
STATUS
approved