OFFSET
1,3
LINKS
Giovanni Resta and Chai Wah Wu, Table of n, a(n) for n = 1..10000 (terms for n = 1..1000 from Giovanni Resta)
EXAMPLE
a(3) = 2 because (2*3)^2 - 1 = 35 divides (2^2)^(2*3) - 1 = 4095.
MATHEMATICA
Table[SelectFirst[Range@ 1200, Divisible[(2^#)^(2 n) - 1, (2 n)^2 - 1] &], {n, 84}] (* Michael De Vlieger, May 01 2016, Version 10 *)
a[n_] := Block[{m=1}, While[ PowerMod[2^m, 2*n, 4*n^2-1] != 1, m++]; m]; Array[a, 100] (* Giovanni Resta, May 05 2016 *)
PROG
(Python)
def A281363(n):
m, q = 1, 4*n**2-1
p = pow(2, 2*n, q)
r = p
while r != 1:
m += 1
r = (r*p) % q
return m # Chai Wah Wu, Jan 28 2017
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Juri-Stepan Gerasimov, Apr 30 2016
STATUS
approved