login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A172471 a(n) = floor(sqrt(2*n)). 11

%I #23 Sep 08 2022 08:45:50

%S 0,1,2,2,2,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,

%T 8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,11,

%U 11,11,11,11,11,11,11,11,11,11,12,12,12

%N a(n) = floor(sqrt(2*n)).

%C If k is even, k appears k+1 times; if k is odd, k appears k times. - _N. J. A. Sloane_, Jan 25 2021

%H N. J. A. Sloane, <a href="/A172471/b172471.txt">Table of n, a(n) for n = 0..20000</a> [First 10000 terms from Vincenzo Librandi]

%F a(n) = A000196(2*n). - _R. J. Mathar_, Jul 06 2010

%t Table[Floor[Sqrt[2n]],{n,0,80}]

%o (Magma) [Floor(Sqrt(2*n)) : n in [0..80]];

%o (Haskell)

%o a172471 = a000196 . (* 2) -- _Reinhard Zumkeller_, Feb 12 2012

%o (PARI) for(n=0,50, print1(floor(sqrt(2*n)), ", ")) \\ _G. C. Greubel_, Jul 06 2017

%Y Cf. A000196, A003056, A103128, A005843.

%K nonn,easy

%O 0,3

%A _Vincenzo Librandi_, Feb 04 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 23 03:19 EDT 2024. Contains 375375 sequences. (Running on oeis4.)