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!)
A317335 a(n) = A317332(n) - 8*n. 6
1, 1, -2, 1, 1, -2, -2, 1, 1, 1, -2, -2, 1, -2, -2, 1, 1, 1, -2, 1, 1, -2, -2, -2, 1, 1, -2, -2, 1, -2, -2, 1, 1, 1, -2, 1, 1, -2, -2, 1, 1, 1, -2, -2, 1, -2, -2, -2, 1, 1, -2, 1, 1, -2, -2, -2, 1, 1, -2, -2, 1, -2, -2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(4*n-3) = 1, a(4*n-1) = -2, a(2*n) = a(n) for n > 0.
abs(a(n)+1) = A014710(n-1).
abs(a(n)) = A014709(n-1).
PROG
(Python)
n, f, i, p, q = 1, 1, 0, 0, 1
while i < 1000000:
....i, p, q = i+1, p*10, q*10
....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 == 8:
........n = n+1
........print(n, a-1-8*n)
CROSSREFS
Sequence in context: A037826 A079882 A362415 * A014709 A278161 A069258
KEYWORD
sign
AUTHOR
A.H.M. Smeets, Jul 26 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 May 6 16:05 EDT 2024. Contains 372294 sequences. (Running on oeis4.)