OFFSET
1,2
LINKS
Walter A. Kehowski, Table of n, a(n) for n = 1..1920 [Corrected by Sean A. Irvine]
EXAMPLE
sigma(1) = 1 = 4*(1)^2 - 3*(1) so a(1)=1.
a(11)=1024 since sigma(1024)=2047 and 2047 = 4*23^2 - 3*23 and 1024 is the 11th such number.
MAPLE
with(numtheory);
decagonal := proc(n::{nonnegint, symbol}) 4*n^2-3*n end:
inv_decagonal :=proc(n::{nonnegint, symbol}) local m; select(z-> type(z, integer) and z>0, [solve(decagonal(m)=n)]) end:
N:=map(decagonal, [$1..1000]):
L:=[]:
for w to 1 do
for n from 1 to N[ -1] do
s:=sigma(n);
if s in N then
L:=[op(L), [n, s]];
print(n, s);
fd:=fopen("sigma-is-decagonal.txt", APPEND);
fprintf(fd, "%d %d\n", n, s);
fclose(fd);
fi;
od; #n
od; #w
MATHEMATICA
Select[Range[10000], IntegerQ[(Sqrt[16*DivisorSigma[1, #] + 9] + 3)/8] &] (* Paolo Xausa, Oct 18 2024 *)
PROG
(PARI) isok(k) = ispolygonal(sigma(k), 10); \\ Michel Marcus, May 18 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Walter Kehowski, Sep 26 2010
EXTENSIONS
Offset changed by Sean A. Irvine, May 18 2024
STATUS
approved
