OFFSET
0,2
LINKS
Robert Israel, Table of n, a(n) for n = 0..6637
FORMULA
a(n) = floor((n+1)/2) + floor(2^(n/2)). - Robert Israel, Jun 13 2019
MAPLE
seq(floor((n+1)/2) + floor(2^(n/2)), n=0..100); # Robert Israel, Jun 13 2019
MATHEMATICA
Table[Floor[(n+1)/2] + Floor[2^(n/2)], {n, 0, 50}] (* Paolo Xausa, Oct 01 2024 *)
PROG
(Haskell)
a188917 n = a188917_list !! n
a188917_list = filter ((== 1) . a209229. a188915) [0..]
-- Reinhard Zumkeller, May 19 2015
(Python)
from math import isqrt
def A188917(n): return (n+1>>1)+isqrt(1<<n) # Chai Wah Wu, Oct 01 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Apr 14 2011
STATUS
approved