OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
MATHEMATICA
A379865[n_] := IntegerLength[2^(# - 1)*(2^# - 1)] & [Prime[n]];
Array[A379865, 100] (* Paolo Xausa, Jan 08 2025 *)
PROG
(Python)
from sympy import prime
def a(n):
p = prime(n)
return len(str((1 << (p-1)) * ((1 << p) - 1)))
print([a(n) for n in range(1, 63)])
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Darío Clavijo, Jan 04 2025
STATUS
approved