login
Characteristic function of two.
13

%I #17 Jun 19 2024 09:16:46

%S 0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

%T 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

%U 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

%N Characteristic function of two.

%C The Euler transformation of this sequence is A059841.

%C This sequence is the first differences of A157928.

%H <a href="/index/Rec#order_01">Index entries for linear recurrences with constant coefficients</a>, signature (1).

%o (Python)

%o def A185012(n): return int(n==2) # _Chai Wah Wu_, Feb 04 2022

%Y Cf. A171386.

%Y Characteristic function of g: A000007 (g=0), A063524 (g=1), this sequence (g=2), A185013 (g=3), A185014 (g=4), A185015 (g=5), A185016 (g=6), A185017 (g=7).

%K nonn,easy

%O 0,1

%A _Jason Kimberley_, Oct 11 2011