OFFSET
1,2
COMMENTS
Kilkelly uses induction to prove that all integers greater than 20 are in the sequence after using various methods on smaller cases.
The positive integers except 2, 3, and 6.
The positive integers except the strong divisors of 6. - Omar E. Pol, Apr 30 2015
REFERENCES
T. Kilkelly, The ARML Power Contest, American Mathematical Society, 2015, chapter 11.
LINKS
FORMULA
From Chai Wah Wu, Aug 13 2020: (Start)
a(n) = 2*a(n-1) - a(n-2) for n > 5.
G.f.: x*(-x^4 + x^3 - 2*x^2 + 2*x + 1)/(x - 1)^2. (End)
EXAMPLE
For n = 4: (0, 1), (2, 7), (3, 6), (4, 5)
For n = 7: (0, 9), (1, 8), (2, 7), (3, 13), (4, 12), (5, 11), (6, 10)
PROG
(PARI) is(n)=n>6 || n==1 || n==4 || n==5 \\ Charles R Greathouse IV, Apr 30 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Brian Hopkins, Apr 28 2015
STATUS
approved