OFFSET
1,2
COMMENTS
EXAMPLE
4^2 - 1 is 15 with sum of digits 6, so 2 is a term.
4^3 - 1 is 63 with sum of digits 9, so 3 is a term.
4^5 - 1 is 1023 with sum of digits 6, so 5 is not a term.
MATHEMATICA
Select[Range[2500], 3# == Total[IntegerDigits[4^# - 1]] &] (* G. C. Greubel, Nov 28 2017 *)
PROG
(PARI) is(n) = 3*n == sumdigits(4^n-1)
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Iain Fox, Nov 27 2017
STATUS
approved