OFFSET
1,2
COMMENTS
a(n) <> n iff 1 < n <= 14.
LINKS
MATHEMATICA
LinearRecurrence[{2, -1}, {1, 12, 2, 8, 9, 3, 13, 4, 14, 5, 10, 7, 6, 11, 15, 16}, 80] (* Harvey P. Dale, Mar 03 2023 *)
PROG
(PARI) a(n)=if(n>14, n, [1, 12, 2, 8, 9, 3, 13, 4, 14, 5, 10, 7, 6, 11][n]) \\ Charles R Greathouse IV, Sep 02 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Sep 29 2004
STATUS
approved