OFFSET
1,1
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
L. Carlitz, R. Scoville and V. E. Hoggatt, Jr., Pellian representatives, Fibonacci Quarterly, 10, issue 5, 1972, 449-488.
MATHEMATICA
ni[n_]:=Module[{c=1+Sqrt[2], a, b, x}, x=c n; a=Floor[x]; b=Ceiling[x]; If[x-a<b-x, a, b]]; Array[ni, 60] (* Harvey P. Dale, May 04 2011 *)
Table[Round[n*(1 + Sqrt[2])], {n, 1, 100}] (* G. C. Greubel, Aug 16 2018 *)
PROG
(PARI) a(n) = round(n*(1+sqrt(2))); \\ Michel Marcus, Sep 07 2017
(Magma) [Round(n*(1+Sqrt(2))): n in [1..100]]; // G. C. Greubel, Aug 16 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Better description 1/97.
STATUS
approved