OFFSET
1,2
COMMENTS
A245575(a(n)) mod 2 = 0, or, where even terms occur in A245575; a(A078633(n)) mod 2 = 0. - Reinhard Zumkeller, Aug 05 2014
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = n + floor(sqrt(2n-2)).
MATHEMATICA
a=2; b=-2;
Table[n+Floor[(a*n+b)^(1/2)], {n, 80}]
Table[n-1+Ceiling[(n*n-b)/a], {n, 50}]
PROG
(Haskell)
a182834 n = a000196 (2 * n - 2) + n -- Reinhard Zumkeller, Aug 05 2014
(Python)
from math import isqrt
def A182834(n): return n+isqrt(n-1<<1) # Chai Wah Wu, Jul 28 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jan 07 2011
STATUS
approved