To prove that there exists a positive integer p such that un=un+p for all n∈N, we will analyze the sequence (un) defined by the recurrence relation:
un+2=∣un+1∣−un
We will consider different initial conditions and show that the sequence is periodic with period 9 in all cases.
1. **Case 1: a=b=0**
- If u1=0 and u2=0, then:
u3=∣u2∣−u1=0−0=0
u4=∣u3∣−u2=0−0=0
⋮
- The sequence is 0,0,0,…, which is clearly periodic with period 1.
2. **Case 2: a=0 and b>0**
- Consider S(0,1):
u1=0,u2=1
u3=∣u2∣−u1=1−0=1
u4=∣u3∣−u2=1−1=0
u5=∣u4∣−u3=0−1=−1
u6=∣u5∣−u4=1−0=1
u7=∣u6∣−u5=1−(−1)=2
u8=∣u7∣−u6=2−1=1
u9=∣u8∣−u7=1−2=−1
u10=∣u9∣−u8=1−1=0
- The sequence is 0,1,1,0,−1,1,2,1,−1,0,1,…, which is periodic with period 9.
3. **Case 3: a=0 and b<0**
- Consider S(0,−1):
- This sequence is just S(0,1) shifted by 4 positions:
u1=0,u2=−1
u3=∣u2∣−u1=1−0=1
u4=∣u3∣−u2=1−(−1)=2
u5=∣u4∣−u3=2−1=1
u6=∣u5∣−u4=1−2=−1
u7=∣u6∣−u5=1−1=0
u8=∣u7∣−u6=0−(−1)=1
u9=∣u8∣−u7=1−0=1
u10=∣u9∣−u8=1−1=0
- The sequence is 0,−1,1,2,1,−1,0,1,1,0,−1,…, which is periodic with period 9.
4. **Case 4: a=0 and b=0**
- Using the symmetry property S(a,b)⟺S(b,a), this case is equivalent to Case 2 and Case 3, and thus periodic with period 9.
5. **Case 5: a=0 and b>0**
- Consider S(a,1):
- We need to analyze different ranges of a:
5.1) If a≥2:
a,1,1−a,a−2,2a−3,a−1,2−a,−1,a−1,a,1,…
5.2) If 2≥a≥1:
a,1,1−a,a−2,1,3−a,2−a,−1,a−1,a,1,…
5.3) If 1≥a≥21:
a,1,1−a,−a,2a−1,3a−1,a,1−2a,a−1,a,1,…
5.4) If 21≥a≥0:
a,1,1−a,−a,2a−1,1−a,2−3a,1−2a,a−1,a,1,…
5.5) If 0≥a≥−1:
a,1,1−a,−a,−1,1+a,2+a,1,−1−a,a,1,…
5.6) If −1≥a:
a,1,1−a,−a,−1,1+a,−a,−1−2a,−1−a,a,1,…
- In all subcases, the sequence is periodic with period 9.
6. **Case 6: a=0 and b<0**
- Since u4=∣u3∣−u2=∣u3∣−b>0, the sequence S(u3,u4) falls into either Case 2 or Case 5, and thus periodic with period 9.
Hence, in all cases, the sequence (un) is periodic with period 9.
un+9=un∀n∈N