login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A119665 Sign in the term (2q +/- 1) for triangular numbers of the form q * (2q +/- 1) where both factors are primes (or prime powers). 0
-1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, 1, -1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1, 1, -1, 1, -1, -1, -1, 1, 1, 1, -1, 1, -1, 1, 1, 1, 1, -1, -1, -1, 1, 1, -1, 1, -1, -1, -1, 1, 1, 1, 1, -1, 1, -1, 1, -1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, 1, 1, -1, 1, -1, -1, 1, -1, -1, -1, -1, 1, 1, 1, -1, 1, -1, 1, -1, 1, 1, 1, 1, -1, -1, -1, -1, 1, -1, 1, -1, -1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
As always, 1 is considered to be a prime power.
LINKS
EXAMPLE
a(1) = -1 since 1 = 1*1 and 1 = 2*1 - 1, a(2) = +1 since 3 = 1*3 and 3 = 2*1 + 1,
a(3) = -1 since 6 = 2*3 and 3 = 2*2 - 1, a(4) = +1 since 10 = 2*5 and 5 = 2*2 + 1,
a(5) = -1 since 15 = 3*5 and 5 = 2*3 - 1, a(6) = +1 since 21 = 3*7 and 7 = 2*3 + 1,
a(7) = -1 since 28 = 4*7 and 7 = 2*4 - 1, a(8) = +1 since 36 = 4*9 and 9 = 2*4 + 1,
a(9) = -1 since 45 = 5*9 and 9 = 2*5 - 1, a(10) = 1 since 55 = 5*11 and 11 = 2*5 + 1;
66 and 78 are the first triangular numbers not equal to a product of prime powers q*(2q+-1);
a(11) = -1 since 91 = 7*13 and 13 = 2*7 - 1;
105 and 120 aren't of the required form, either;
a(12) = +1 since 136 = 8*17 and 17 = 2*8 + 1,
a(13) = -1 since 153 = 9*17 and 17 = 2*9 - 1,
a(14) = +1 since 171 = 9*19 and 19 = 2*9 + 1;
now 190, 210 and 231 aren't of the required form, which yields the first a(n) = a(n-1):
a(15) = +1 since 253 = 11*23 and 23 = 2*11 + 1. - M. F. Hasler, Apr 21 2015
PROG
(PARI) for(q=1, 999, (isprimepower(q)||q==1)&&forstep(j=-1, 1, 2, (isprimepower(q*2+j)||q*2+j==1)&&print1(j", "))) \\ M. F. Hasler, Apr 21 2015
CROSSREFS
Sequence in context: A143431 A064179 A065357 * A121241 A122188 A158388
KEYWORD
sign
AUTHOR
Greg Huber, Jul 28 2006
EXTENSIONS
Missing and wrong terms and offset corrected; more terms added by M. F. Hasler, Apr 21 2015
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 December 5 05:37 EST 2023. Contains 367575 sequences. (Running on oeis4.)