OFFSET
1,3
EXAMPLE
9 is in the sequence, because 2^9 + 1 = 513 is divisible by 5 + 1 + 3.
PROG
(Python)
print([i for i in range(5000) if (2**i+1)%sum([int(i) for i in str(2**i+1)]) == 0])
(PARI) isok(k) = my(x=2^k+1); !(x % sumdigits(x)); \\ Michel Marcus, Mar 23 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Daniel Starodubtsev, Mar 23 2020
EXTENSIONS
More terms from Giovanni Resta, Mar 23 2020
STATUS
approved