OFFSET
1,1
COMMENTS
This is a centered polygonal number analog to A090466.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
a(n) ~ c*n with 1.95 < c < 2.29. - Charles R Greathouse IV, Jul 28 2016
MAPLE
isA275340 := proc(n)
local nsearch, ksearch;
for nsearch from 1 do
if A101321(nsearch, 2) > n then
return false;
end if;
for ksearch from 2 do
if A101321(nsearch, ksearch) = n then
return true;
elif A101321(nsearch, ksearch) > n then
break;
end if;
end do:
end do:
end proc:
for n from 1 to 400 do
if isA275340(n) then
printf("%d, ", n) ;
end if;
end do:
MATHEMATICA
maxTerm = 1000;
Table[1+n*k*(k+1)/2, {n, 1, maxTerm-1}, {k, 2, Sqrt[2maxTerm] // Ceiling}] // Flatten // Union // Select[#, # <= maxTerm&]& (* Jean-François Alcover, Jun 17 2023 *)
PROG
(PARI) list(lim)=my(v=List(), t); lim\=1; for(k=2, sqrt(8*lim-7)/2, t=k*(k+1)/2; forstep(a=t+1, lim, t, listput(v, a))); Set(v) \\ Charles R Greathouse IV, Jul 28 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
R. J. Mathar, Jul 28 2016
STATUS
approved