The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A056213 Primes p for which the period of reciprocal = (p-1)/8. 13

%I #14 Apr 02 2018 21:04:17

%S 41,241,1601,1609,2441,2969,3041,3449,3929,4001,4409,5009,6089,6521,

%T 6841,8161,8329,8609,9001,9041,9929,13001,13241,14081,14929,16001,

%U 16481,17489,17881,18121,19001,20249,20641,20921,21529,22481,23801

%N Primes p for which the period of reciprocal = (p-1)/8.

%C Cyclic numbers of the eighth degree (or eighth order): the reciprocals of these numbers belong to one of eight different cycles. Each cycle has the (number minus 1)/8 digits.

%C From _Robert Israel_, Apr 02 2018: (Start)

%C Primes p such that A002371(A000720(p))=(p-1)/8.

%C All terms == 1 (mod 8). (End)

%H Robert Israel, <a href="/A056213/b056213.txt">Table of n, a(n) for n = 1..10000</a>

%H <a href="/index/1#1overn">Index entries for sequences related to decimal expansion of 1/n</a>

%p select(t -> isprime(t) and numtheory:-order(10, t) = (t-1)/8, [seq(t,t=17..24000,8)]); # _Robert Israel_, Apr 02 2018

%t f[n_Integer] := Block[{ds = Divisors[n - 1]}, (n - 1)/Take[ ds, Position[ PowerMod[ 10, ds, n], 1] [[1, 1]]] [[ -1]]]; Select[ Prime[ Range[4, 2700]], f[ # ] == 8 &]

%K nonn,base

%O 1,1

%A _Robert G. Wilson v_, Aug 02 2000

%E Edited by _N. J. A. Sloane_, Apr 30 2007

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 June 10 08:08 EDT 2024. Contains 373256 sequences. (Running on oeis4.)