OFFSET
1,2
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 9 is a term because 1 + 2^9 + 3^9 = 20196 = 1188 * 17 is divisible by 2*9-1 = 17.
MAPLE
select(k -> 1 + 2 &^ k + 3 &^ k mod (2*k-1) = 0, [$1..1000]);
MATHEMATICA
Select[Range[720], Divisible[PowerMod[3, #, 2*# - 1] + PowerMod[2, #, 2*# - 1] + 1, 2*# - 1] &] (* Amiram Eldar, Aug 03 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Aug 02 2023
STATUS
approved