OFFSET
1,2
COMMENTS
See 3.3 p. 344 in Carlitz link. - Michel Marcus, Feb 02 2014
This is the function named r in [Carlitz]. - Eric M. Schmidt, Aug 14 2014
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
L. Carlitz, R. Scoville and T. Vaughan, Some arithmetic functions related to Fibonacci numbers, Fib. Quart., 11 (1973), 337-386.
MATHEMATICA
a3221[n_] := Floor[n(5 + Sqrt[5])/2];
a1950[n_] := Floor[n(1 + Sqrt[5])^2/4];
Select[Range[100], a3221[a1950[#]] == a1950[a3221[#]]&] (* Jean-François Alcover, Aug 04 2018 *)
PROG
(PARI) A001950(n) = floor(n*(sqrt(5)+3)/2);
A003231(n) = floor(n*(sqrt(5)+5)/2);
lista(nn) = { for(n=1, nn, if (A003231(A001950(n)) == A001950(A003231(n)), print1(n, ", "))); } \\ Michel Marcus, Feb 02 2014
(Haskell)
a003233 n = a003233_list !! (n-1)
a003233_list = [x | x <- [1..],
a003231 (a001950 x) == a001950 (a003231 x)]
-- Reinhard Zumkeller, Oct 03 2014
(Python)
from math import isqrt
from itertools import count, islice
def A003233_gen(startvalue=1): # generator of terms >= startvalue
return filter(lambda n:((m:=(n+isqrt(5*n**2)>>1)+n)+isqrt(5*m**2)>>1)+(m<<1)==((k:=(n+isqrt(5*n**2)>>1)+(n<<1))+isqrt(5*k**2)>>1)+k, count(max(1, startvalue)))
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Michel Marcus, Feb 02 2014
Definition from Michel Marcus moved from comment to name by Eric M. Schmidt, Aug 17 2014
STATUS
approved