OFFSET
1,2
COMMENTS
Fixed points of the Doudna sequence: A005940(a(n)) = A005941(a(n)) = a(n). - Reinhard Zumkeller, Aug 23 2006
Subsequence of A103969. - R. J. Mathar, Mar 06 2010
LINKS
David A. Corneth, Table of n, a(n) for n = 1..9963 (terms <= 10^1000)
Index entries for linear recurrences with constant coefficients, signature (0,0,2).
FORMULA
a(n) = if n < 6 then n else 2*a(n-3). - Reinhard Zumkeller, Aug 23 2006
G.f.: (1+x+x^2)^2/(1-2*x^3). - R. J. Mathar, Mar 06 2010
Sum_{n>=1} 1/a(n) = 46/15. - Amiram Eldar, Oct 15 2020
EXAMPLE
128 = 2^7 * 1 is in the sequence as well as 160 = 2^5 * 5. - David A. Corneth, Sep 18 2020
MATHEMATICA
m = 200000; Select[Union @ Flatten @ Outer[Times, {1, 3, 5}, 2^Range[0, Floor[Log2[m]]]], # < m &] (* Amiram Eldar, Oct 15 2020 *)
PROG
(PARI) is(n) = n>>valuation(n, 2) <= 5 \\ David A. Corneth, Sep 18 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Edited by David A. Corneth and Peter Munn, Sep 18 2020
STATUS
approved