OFFSET
1,2
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..2520
Wikipedia, Parity of permutation.
MATHEMATICA
q[n_] := Module[{k = n, m = 2, c = 0, r}, While[{k, r} = QuotientRemainder[k, m]; k != 0 || r != 0, If[r != 0, c++]; m++]; OddQ[c]]; Select[Range[150], q] (* Amiram Eldar, Jan 24 2024 *)
PROG
(Scheme, with Antti Karttunen's IntSeq-library): (define A227132 (MATCHING-POS 1 0 (lambda (i) (odd? (A060130 i)))))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Jul 02 2013
STATUS
approved