login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A165776
n + (least square > n), i.e., n + A048761(n+1).
1
1, 5, 6, 7, 13, 14, 15, 16, 17, 25, 26, 27, 28, 29, 30, 31, 41, 42, 43, 44, 45, 46, 47, 48, 49, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 145, 146
OFFSET
0,2
FORMULA
a(n) = A001477(n) + A048761(n+1)
EXAMPLE
a(4)= 13 = 4+9 because 9 is the least square > 4.
PROG
(PARI) A165776(n)=n+(sqrtint(n)+1)^2
CROSSREFS
Cf. A165775.
Sequence in context: A247522 A011761 A106745 * A327106 A003273 A006991
KEYWORD
easy,nonn
AUTHOR
M. F. Hasler, Oct 05 2009
STATUS
approved