editing
approved
editing
approved
Rest@ Union@ Table[If[# == n - 1, #, 0] &@ Block[{m = 1}, While[PowerMod[2^m, 2 n, 4 n^2 - 1] != 1, m++]; m], {n, 620}] + 1 (* Michael De Vlieger, May 06 2016, after Giovanni Resta at A265163 A281363 *)
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
Table[SelectFirst[Range[10^5], PowerMod[2^#, 2 n, 4 n^2 - 1] == 1 &] /. k_ /; k != n - 1 -> Nothing, {n, 620}] + 1 (* Version 10.2, or *)
Rest@ Union@ Table[If[# == n - 1, #, 0] &@ Block[{m = 1}, While[PowerMod[2^m, 2 n, 4 n^2 - 1] != 1, m++]; m], {n, 620}] + 1 (* Michael De Vlieger, May 06 2016, after Giovanni Resta at A265163 *)
proposed
editing
editing
proposed
Conjecture: primorial numbers (A002110) are the membres terms of a(n)this sequence.
proposed
editing
editing
proposed