[go: up one dir, main page]

login
A172338
a(n) = floor(n*(sqrt(5)+sqrt(3))).
15
0, 3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63, 67, 71, 75, 79, 83, 87, 91, 95, 99, 103, 107, 111, 115, 119, 123, 126, 130, 134, 138, 142, 146, 150, 154, 158, 162, 166, 170, 174, 178, 182, 186, 190, 194, 198, 202, 206, 210, 214, 218
OFFSET
0,2
COMMENTS
sqrt(5)+sqrt(3) = 3.96811878506867... is the largest root of x^4 - 16*x^2 + 4.
MATHEMATICA
With[{c = Sqrt[5] + Sqrt[3]}, Floor[c Range[0, 60]]] (* Harvey P. Dale, Apr 10 2012 *)
PROG
(Magma) [Floor(n*Sqrt(5)+Sqrt(3)): n in [0..60] ];
(PARI) a(n)=sqrtint(sqrtint(60*n^4)+8*n^2) \\ Charles R Greathouse IV, Jan 24 2022
KEYWORD
nonn,less,easy
AUTHOR
Vincenzo Librandi, Feb 01 2010
STATUS
approved