OFFSET
0
REFERENCES
Hofstadter, "Goedel, Escher, Bach", p. 137.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 0..10000
Eric Weisstein's World of Mathematics, Hofstadter Male-Female Sequences.
PROG
(Haskell)
a192687 n = a192687_list !! n
a192687_list = zipWith (-) females males where
females = 1 : zipWith (-) [1..] (map (males !!) females)
males = 0 : zipWith (-) [1..] (map (females !!) males)
(PARI) a(n)=my(k=(n+1)^2); k+=(k+1)<<2; issquare(k) || issquare(k-8) \\ Charles R Greathouse IV, Nov 07 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Jul 12 2011
STATUS
approved