The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A226102 Prime powers (A025475) representable as triangular(k)+1. 1
1, 4, 16, 121, 529, 4096, 139129, 160554241, 812293020529, 379188080252621270252095321 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Indices of triangular numbers are in A226103.
53072032161200090602953513048447623^2 is also a term. - Giovanni Resta, May 26 2013
LINKS
FORMULA
a(n) = A000217(A226103(n)) + 1.
PROG
(C)
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define TOP (1ULL<<32) // Memory usage: 0.5 Gb
int main() {
unsigned long long i, j, p, t, r;
unsigned char *c = (unsigned char *)malloc(TOP/8);
memset(c, 0, TOP/8);
for (printf("1, "), i=1; i < TOP; i+=2)
if ((c[i>>4] & (1<<((i>>1)&7))) == 0) {
for (p = i + (i==1), j = p*p; ; j*=p) {
t = j - 1;
r = sqrt(t*2);
if (r*(r+1)==t*2) printf("%llu, ", j);
double k = ((double)j) * ((double)p);
if (k >= ((double)(1ULL<<62)*4.0)) break;
}
if (i>1) for (j=i*i>>1; j<TOP; j+=i) c[j>>3] |= 1 << (j&7);
}
// SORT the output
return 0;
}
CROSSREFS
Sequence in context: A204573 A358880 A306561 * A094356 A322236 A318152
KEYWORD
nonn,more
AUTHOR
Alex Ratushnyak, May 26 2013
EXTENSIONS
a(10) from Giovanni Resta, May 26 2013
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 16 00:16 EDT 2024. Contains 372549 sequences. (Running on oeis4.)