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!)
A189365 a(n) = n + [n*r/s] + [n*t/s]; r=1, s=sqrt(2), t=(1+sqrt(5))/2. 3

%I #11 Sep 08 2022 08:45:56

%S 2,5,8,10,13,16,19,22,25,28,30,33,36,39,42,45,48,50,53,56,59,62,65,67,

%T 70,73,76,79,82,85,87,90,93,96,99,102,105,107,110,113,115,119,122,125,

%U 127,130,133,135,139,142,145,147,150,153,155,159,162,165,167,170,173,175,179,182,184,187,190,193,195,199,202,204,207,210,213,215,219,222,224,227,230,232,235,239

%N a(n) = n + [n*r/s] + [n*t/s]; r=1, s=sqrt(2), t=(1+sqrt(5))/2.

%C See A189364.

%H G. C. Greubel, <a href="/A189365/b189365.txt">Table of n, a(n) for n = 1..10000</a>

%t r = 1; s = Sqrt[2]; t = (1 + Sqrt[5])/2;

%t f[n_] := n + Floor[n*s/r] + Floor[n*t/r];

%t g[n_] := n + Floor[n*r/s] + Floor[n*t/s];

%t h[n_] := n + Floor[n*r/t] + Floor[n*s/t]

%t Table[f[n], {n, 1, 120}] (* A189364 *)

%t Table[g[n], {n, 1, 120}] (* A189365 *)

%t Table[h[n], {n, 1, 120}] (* A189366 *)

%t Table[n+Floor[n/Sqrt[2]]+Floor[(n*GoldenRatio)/Sqrt[2]],{n,90}] (* _Harvey P. Dale_, Aug 21 2015 *)

%o (PARI) for(n=1,100, print1(n + floor(n/sqrt(2)) + floor(n*(1+sqrt(5))/(2*sqrt(2))), ", ")) \\ _G. C. Greubel_, Apr 20 2018

%o (Magma) [n + Floor(n/Sqrt(2)) + Floor(n*(1+Sqrt(5))/(2*Sqrt(2))): n in [1..100]]; // _G. C. Greubel_, Apr 20 2018

%Y Cf. A189364, A189366.

%K nonn

%O 1,1

%A _Clark Kimberling_, Apr 20 2011

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 September 10 00:02 EDT 2024. Contains 375765 sequences. (Running on oeis4.)