|
|
A082742
|
|
Indices of occurrences of 2 in A004738.
|
|
0
|
|
|
2, 4, 6, 8, 12, 14, 20, 22, 30, 32, 42, 44, 56, 58, 72, 74, 90, 92, 110, 112, 132, 134, 156, 158, 182, 184, 210, 212, 240, 242, 272, 274, 306, 308, 342, 344, 380, 382, 420, 422, 462, 464, 506, 508, 552, 554, 600, 602, 650, 652, 702, 704, 756, 758, 812, 814, 870, 872, 930, 932, 992, 994, 1056, 1058, 1122, 1124, 1190, 1192, 1260, 1262, 1332, 1334, 1406, 1408, 1482, 1484, 1560, 1562
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Indices of occurrences of 1 in A004738 are given by A002061, b(n) = n^2 - n + 1 (the central polygonal numbers). All entries are even.
|
|
LINKS
|
|
|
FORMULA
|
|
|
MAPLE
|
local f ;
f := floor(sqrt(n)+1/2) ;
f+1-abs(n-1-f^2) ;
end proc:
for n from 1 to 1600 do
printf("%d, ", n) ;
end if;
|
|
MATHEMATICA
|
LinearRecurrence[{1, 2, -2, -1, 1}, {2, 4, 6, 8, 12}, 80] (* Harvey P. Dale, Jun 16 2017 *)
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|