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!)
A214228 a(n) = gcd(r,2*n+1) where r is 1 + (A143608(i-1) mod (2*n+1)) and A143608(i) is the first zero mod 2*n+1 other than i=0. 2
1, 1, 1, 1, 1, 1, 5, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 13, 1, 1, 5, 1, 1, 3, 1, 5, 1, 1, 1, 7, 1, 1, 23, 1, 1, 25, 7, 1, 1, 1, 5, 29, 1, 7, 31, 5, 1, 1, 1, 1, 35, 1, 1, 37, 1, 23, 13, 7, 1, 41, 1, 1, 1, 1, 7, 5, 1, 1, 47, 13, 1, 49, 1, 1, 9, 31, 1, 53 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,7
COMMENTS
It appears that a(n) * gcd(s,2*n+1) is either 2*n+1 or 1; where s is 1 + (A143608(i+1) mod (2*n+1)) and A143608(i) is as stated in the definition.
LINKS
EXAMPLE
a(7) = 5 which is a factor of 2*7+1.
MAPLE
A214228 := proc(n)
local i, r ;
i := 1;
while A143608(i) mod (2*n+1) <> 0 do
i := i+1 ;
end do;
r := 1+(A143608(i-1) mod (2*n+1)) ;
gcd(r, 2*n+1) ;
end proc: # R. J. Mathar, Jul 22 2012
MATHEMATICA
gcdN1[x_, y_] = GCD[x + 1, y]; r0 = 3; Reap[While[r0 < 200, s1=1; s0=0; count=1; While[True, count++; temp=Mod[4*s1 - s0, r0]; If[temp==0, Break[]]; count++; s0 = s1; s1 = temp; temp=Mod[2*s1-s0, r0]; If[temp == 0, Break[]]; s0 = s1; s1 = temp; ]; Sow[gcdN1[s1, r0], c]; r0+=2; ]][[2, 1]]
CROSSREFS
Cf. A143608.
Sequence in context: A174038 A328098 A200401 * A324385 A111720 A029646
KEYWORD
nonn
AUTHOR
Kenneth J Ramsey, Jul 07 2012
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 24 15:57 EDT 2024. Contains 371961 sequences. (Running on oeis4.)