OFFSET
1,1
COMMENTS
Sequence contains the prime numbers most of the time. Nonprime terms of this sequence are 385, 111361, 111841, 155041, 186961 ...
EXAMPLE
13 is a term because (0 + 1 + 2 + 5 + 12 + 29 + 70 + 169 + 408 + 985 + 2378 + 5741 + 13860) / (1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13) = 260.
PROG
(PARI) a048739(n) = local(w=quadgen(8)); -1/2+(3/4+1/2*w)*(1+w)^n+(3/4-1/2*w)*(1-w)^n;
for(n=1, 1e4, if(a048739(n-1) % ((n+1)*(n+2)/2) == 0 && (n+1) % 2 == 1, print1((n+1), ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Mar 17 2016
STATUS
approved