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!)
A317627 a(n) = A317253 - floor(8*n/3). 2
2, 3, 1, 1, 3, 1, 2, 1, -1, 1, 3, 1, 2, 3, 1, 1, 1, -1, 2, 1, -1, 1, 3, 1, 2, 3, 1, 1, 3, 1, 2, 1, -1, 1, 1, -1, 2, 3, 1, 1, 1, -1, 2, 1, -1, 1, 3, 1, 2, 3, 1, 1, 3, 1, 2, 1, -1, 1, 3, 1, 2, 3, 1, 1, 1, -1, 2, 1, -1, 1, 1, -1, 2, 3, 1, 1, 3, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(3*n+1) = 2 - (n mod 2) for n >= 0, a(6*n+2) = 3 - 2*(n mod 2) and a(6*n+5) = a(3*n+2) for n >= 0, a(6*n+3) = 1 - 2*(n mod 2) and a(6*n+6) = a(3*n+3) for n >= 0.
a(3*n+1) = A000034(n+1) for n >= 0.
a(3*n+2) = A089607(n) for n > 1.
a(3*n+2) = 2*A014577(n-1)+1 for n > 0.
a(3*n+3) = A034947(n) = 2*A014577(n-1)-1 for n > 0.
PROG
(Python)
n, f, i, p, q, base = 1, 1, 0, 0, 1, 3
while i < 100000:
....i, p, q = i+1, p*base, q*base
....if i == f:
........p, n = p+1, n+1
........f = f*n
n, a, j = 0, 0, 0
while p%q > 0:
....a, f, p, q = a+1, p//q, q, p%q
....if f == 1:
........n = n+1
........print(n, a-1-(8*n//3))
CROSSREFS
Sequence in context: A251045 A300521 A356152 * A271566 A296659 A270823
KEYWORD
sign
AUTHOR
A.H.M. Smeets, Aug 02 2018
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 18 06:24 EDT 2024. Contains 371769 sequences. (Running on oeis4.)