login
A353147
Decimal repunits written in base 8.
6
0, 1, 13, 157, 2127, 25547, 331007, 4172107, 52305307, 647665707, 10216432707, 122621414707, 1473657200707, 20126330410707, 241540165130707, 3120702223570707, 37450626705270707, 473627744665470707, 6125757360430070707, 75533532545361070707
OFFSET
0,3
FORMULA
a(n) = A007094(A002275(n)).
PROG
(PARI) a(n) = fromdigits(digits((10^n-1)/9, 8));
(Python)
def a(n): return 0 if n == 0 else int(oct(int("1"*n))[2:])
print([a(n) for n in range(13)]) # Michael S. Branicky, Apr 26 2022
KEYWORD
nonn,base,easy
AUTHOR
Seiichi Manyama, Apr 26 2022
STATUS
approved