OFFSET
1,1
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Ralph H. Buchholz and Warwick De Launey, The square, the triangle and the hexagon, 1996.
Douglas A. Torrance, Enumeration of planar Tangles, arXiv:1906.01541 [math.CO], 2019.
Douglas A. Torrance, Enumeration of planar Tangles, Proc. Math. Sci. 130 (50 (2020)
FORMULA
a(n) = 2*n + ceiling(2*sqrt(n)) = 2*n + A027434(n).
a(n) = (4*n + A027709(n))/2. - Tanya Khovanova, Mar 07 2008
EXAMPLE
a(2)=7 because we have following construction:
_ _
|_|_|
MATHEMATICA
Table[2n+Ceiling[2Sqrt[n]], {n, 70}] (* Harvey P. Dale, Jun 20 2011 *)
PROG
(Haskell)
a078633 n = 2 * n + ceiling (2 * sqrt (fromIntegral n))
-- Reinhard Zumkeller, Aug 05 2014
(PARI) a(n) = 2*n + ceil(2*sqrt(n)); \\ Michel Marcus, Mar 26 2018
(Python)
from math import isqrt
def A078633(n): return (m:=n<<1)+1+isqrt((m<<1)-1) # Chai Wah Wu, Jul 28 2022
CROSSREFS
KEYWORD
nonn,easy,nice
AUTHOR
Mambetov Timur and Takenov Nurdin (timur_teufel(AT)mail.ru), Dec 12 2002
STATUS
approved