login
A198263
a(n) = ceiling(n*sqrt(8)).
1
0, 3, 6, 9, 12, 15, 17, 20, 23, 26, 29, 32, 34, 37, 40, 43, 46, 49, 51, 54, 57, 60, 63, 66, 68, 71, 74, 77, 80, 83, 85, 88, 91, 94, 97, 99, 102, 105, 108, 111, 114, 116, 119, 122, 125, 128, 131, 133, 136, 139, 142, 145, 148, 150, 153, 156, 159
OFFSET
0,2
LINKS
MATHEMATICA
Ceiling[Range[0, 60]Sqrt[8]] (* Harvey P. Dale, May 05 2012 *)
PROG
(Magma) [Ceiling(n*Sqrt(8)): n in [0..60]]
(Python)
from math import isqrt
def A198263(n): return 1+isqrt(n*n<<3) if n else 0 # Chai Wah Wu, Jul 29 2022
CROSSREFS
Sequence in context: A346951 A162500 A191405 * A276192 A347404 A329771
KEYWORD
nonn
AUTHOR
Vincenzo Librandi, Oct 24 2011
STATUS
approved