login

Revision History for A119665

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Sign in the term (2q +/- 1) for triangular numbers of the form q * (2q +/- 1) where both factors are primes (or prime powers).
(history; published version)
#11 by N. J. A. Sloane at Tue Apr 21 22:48:09 EDT 2015
STATUS

editing

approved

#10 by N. J. A. Sloane at Tue Apr 21 22:48:06 EDT 2015
COMMENTS

Here, As always, 1 is considered as to be a prime power.

STATUS

proposed

editing

#9 by M. F. Hasler at Tue Apr 21 01:36:02 EDT 2015
STATUS

editing

proposed

#8 by M. F. Hasler at Tue Apr 21 01:35:56 EDT 2015
KEYWORD

sign,more,changed

STATUS

proposed

editing

#7 by M. F. Hasler at Tue Apr 21 01:30:22 EDT 2015
STATUS

editing

proposed

Discussion
Tue Apr 21
01:34
M. F. Hasler: Note: "1 is considered as a prime power" is deduced from the indices in the examples of the original version: which obviously started with index 1 *and* considered the cases where one of the factors was q=1 or 2q-1=1 --- otherwise, 3*7 could not be the 6-th term of the sequence.
#6 by M. F. Hasler at Tue Apr 21 01:29:25 EDT 2015
EXAMPLE

66 and 78 are the first triangular numbers not of the form "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 this form, either;

105 and 120 aren't of the required form, either;

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

#5 by M. F. Hasler at Tue Apr 21 01:24:05 EDT 2015
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;

#4 by M. F. Hasler at Tue Apr 21 01:22:47 EDT 2015
DATA

-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

OFFSET

0,1

1

COMMENTS

Here, 1 is considered as a prime power.

EXAMPLE

a(61) = -1 since 1 = 1*1 and 1 = 2*1 - 1, a(2) = +1 since 21 = 3 = 1*7 3 and 7 3 = 2*3 1 + 1.,

a(73) = -1 since 28 6 = 2*3 and 3 = 2*2 - 1, a(4) = +1 since 10 = 2*7 5 and 7 5 = 2*4 - 2 + 1.,

a(85) = -1 since 15 = 3*5 and 5 = 2*3 - 1, a(6) = +1 since 36 21 = 43*9 7 and 9 7 = 2*4 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 of the form "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 this 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)&&forstep(j=-1, 1, 2, isprimepower(q*2+j)+q*2+j==1&&print1(j", ")) \\ M. F. Hasler, Apr 21 2015

CROSSREFS
EXTENSIONS

Missing and wrong terms and offset corrected; more terms added by M. F. Hasler, Apr 21 2015

#3 by M. F. Hasler at Tue Apr 21 00:23:05 EDT 2015
KEYWORD

sign,more

STATUS

approved

editing

#2 by Charles R Greathouse IV at Sat Oct 12 15:24:51 EDT 2013
AUTHOR

_Greg Huber (huber(AT)alum.mit.edu), _, Jul 28 2006

Discussion
Sat Oct 12
15:24
OEIS Server: https://oeis.org/edit/global/2014