OFFSET
0,2
COMMENTS
a(0)=1 relies on the algebraic identity 0^0 = 1 (à la Knuth).
LINKS
D. E. Knuth, Two Notes on Notation, The American Mathematical Monthly, 99 (1992), 403-422.
MATHEMATICA
Join[{1}, Table[Ceiling[Sqrt[(2 n)^n]], {n, 30}]] (* Vincenzo Librandi, Jul 10 2018 *)
PROG
(PARI) a(n) = ceil(sqrt((2*n)^n)); \\ Michel Marcus, Jul 10 2018
(Magma) [Ceiling(Sqrt((2*n)^n)): n in [0..25]]; // Vincenzo Librandi, Jul 10 2018
(Python)
from math import isqrt
def A316661(n): return 1+isqrt((n<<1)**n-1) # Chai Wah Wu, Jul 29 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Greg Huber, Jul 09 2018
STATUS
approved