login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A256348 Moduli n for which A248218(n) = 8. 2
193, 386, 461, 523, 579, 772, 887, 922, 1019, 1046, 1158, 1351, 1383, 1544, 1569, 1774, 1844, 1861, 2038, 2092, 2123, 2153, 2269, 2316, 2509, 2661, 2702, 2766, 2887, 3057, 3088, 3138, 3227, 3391, 3449, 3541, 3548, 3661, 3667, 3688, 3722, 3919 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
If x and y are members, then so is LCM(x,y). - Robert Israel, Mar 08 2021
LINKS
MAPLE
filter:= proc(n) local x, k, R;
x:= 0; R[0]:= 0;
for k from 1 do
x:= x^2+1 mod n;
if assigned(R[x]) then return evalb(k-R[x] = 8)
else R[x]:= k fi
od;
end proc:
select(filter, [$1..5000]); # Robert Israel, Mar 08 2021
MATHEMATICA
filter[n_] := Module[{x, k, R}, x = 0; R[0] = 0; For[k = 1, True, k++, x = Mod[x^2+1, n]; If[IntegerQ[R[x]], Return[k - R[x] == 8], R[x] = k]]];
Select[Range[4000], filter] (* Jean-François Alcover, May 15 2023, after Robert Israel *)
PROG
(PARI) for(i=1, 3000, A248218(i)==8&&print1(i", "))
CROSSREFS
Sequence in context: A342308 A147171 A146824 * A142453 A065213 A100363
KEYWORD
nonn
AUTHOR
M. F. Hasler, Mar 25 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 20:33 EDT 2024. Contains 371916 sequences. (Running on oeis4.)