[go: up one dir, main page]

login
A172270
a(n) = floor(n*(sqrt(11)-sqrt(5))).
13
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77
OFFSET
0,3
LINKS
MATHEMATICA
With[{c=Sqrt[11]-Sqrt[5]}, Floor[c*Range[0, 80]]] (* Harvey P. Dale, Apr 24 2013 *)
PROG
(Magma) [Floor(n*(Sqrt(11)-Sqrt(5))): n in [0..80]]; // Vincenzo Librandi, Aug 01 2013
(PARI) a(n) = floor(n*(sqrt(11)-sqrt(5))) \\ Charles R Greathouse IV, Jul 01 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 30 2010
EXTENSIONS
Checked by Michael B. Porter, Jun 16 2010
STATUS
approved