login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual appeal: Please make a donation to keep the OEIS running! Over 6000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A174695 Partial sums of A173950. 1
0, 0, 1, 0, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1, 2, 3, 2, 1, 2, 1, 0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 3, 2, 1, 0, 1, 2, 3, 2, 3, 2, 3, 2, 1, 0, 1, 0, 1, 2, 1, 2, 3, 4, 5, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 2, 3, 2, 3, 4, 3, 2, 1, 2, 3, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,10

COMMENTS

Since this sequence equals A112632(n)-1, and A007352 gives the primes at which the sign of A112632 changes, we have a change of sign in the present sequence not exactly at the primes listed in A007352, but earlier for changes to negative sign, and later for the opposite changes. Moreover, a change of sign in either of the sequences corresponds not necessarily to a change of sign (in the strict sense, i.e., regarding 0 as a number with the same sign as the preceding term) in the other one.  - M. F. Hasler, Oct 09 2011

LINKS

Franklin T. Adams-Watters, Table of n, a(n) for n = 1..10000

FORMULA

a(n) = A112632(n)-1.  - M. F. Hasler, Oct 09 2011

MAPLE

A173950 := proc(n) if (ithprime(n)+1) mod 6 = 0 then 1; elif (ithprime(n)-1) mod 6 = 0 then -1; else 0 ; end if; end proc:

A174695 := proc(n) add(A173950(i), i=1..n) ; end proc:

seq(A174695(n), n=1..90) ; # R. J. Mathar, Nov 30 2010

PROG

(PARI) s=0; forprime(p=1, 999, print1(s+=if(p%3-1, p>3, -1)", "))  \\ - M. F. Hasler, Oct 09 2011

CROSSREFS

Cf. A007352, A112632, A098044, A096630.

Sequence in context: A119995 A062756 A272728 * A165577 A259776 A116422

Adjacent sequences:  A174692 A174693 A174694 * A174696 A174697 A174698

KEYWORD

sign

AUTHOR

Giovanni Teofilatto, Nov 30 2010

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified November 24 00:27 EST 2017. Contains 295164 sequences.