Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
A071374
0 iff n is of the form 4^a*(8k+7), otherwise 1.
4
1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1
OFFSET
0,1
COMMENTS
0 iff n is not the sum of three squares.
LINKS
J.-P. Allouche and J. Shallit, The ring of k-regular sequences, preprint.
J.-P. Allouche and J. Shallit, The ring of k-regular sequences, Theoretical Computer Sci., Vol. 98 (1992), pp. 163-197.
CROSSREFS
1's complement to A072401. Cf. A071377.
Sequence in context: A212793 A307420 A129667 * A071025 A077010 A330548
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 12 2002
STATUS
approved