login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A281114 Parity of the n-th squarefree triangular number. 1
1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
The sequence giving the parity of all triangular numbers is periodic with period 4 after the initial 0, A000217(n) mod 2 = A021913(n+1).
LINKS
FORMULA
a(n) = A061304(n) mod 2.
EXAMPLE
The eighth squarefree triangular number is 66, which is even, so a(8) = 0.
MAPLE
map(t -> `if`(t-1 mod 4 <= 1, 1, 0), select(t -> numtheory:-issqrfree(t*(t+1)/2), [$1..1000])); # Robert Israel, Oct 09 2017
MATHEMATICA
Boole@ OddQ@ # & /@ Select[PolygonalNumber@ Range@ 210, SquareFreeQ] (* Michael De Vlieger, Oct 06 2017 *)
CROSSREFS
Sequence in context: A323511 A284391 A127015 * A286749 A359374 A188192
KEYWORD
nonn
AUTHOR
Rick L. Shepherd, Jan 14 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 14:49 EDT 2024. Contains 371914 sequences. (Running on oeis4.)