Răspuns :
n:6=c rest 1⇒n este nr.impar
n:8=c rest 1⇒ n este nr.impar
Nr.cuprinse intre 40 si 50 ∈{41,42,43,44,45,46,47,48,49}
Nr.impare cuprinse intre 40 si 50 ∈{41,43,45,47,49}
1. 41:6=6 rest 1(F)
41:8=5 rest 1(A)
Nu.
2. 43:6=7 rest 1(A)
43:8=5 rest 1(F)
Nu.
3. 45:6=7 rest 1(F)
45:8=5 rest 1(F)
Nu.
4. 47:6=7 rest 1(F)
47:8=5 rest 1(F)
Nu.
5. 49:6=8 rest 1(A)
49:8=6 rest 1(A)
Da.
Deci n este 49.
n:8=c rest 1⇒ n este nr.impar
Nr.cuprinse intre 40 si 50 ∈{41,42,43,44,45,46,47,48,49}
Nr.impare cuprinse intre 40 si 50 ∈{41,43,45,47,49}
1. 41:6=6 rest 1(F)
41:8=5 rest 1(A)
Nu.
2. 43:6=7 rest 1(A)
43:8=5 rest 1(F)
Nu.
3. 45:6=7 rest 1(F)
45:8=5 rest 1(F)
Nu.
4. 47:6=7 rest 1(F)
47:8=5 rest 1(F)
Nu.
5. 49:6=8 rest 1(A)
49:8=6 rest 1(A)
Da.
Deci n este 49.