Ta có:
a2017 + b2017 = a2017 + ab2016 + a2016b + b2017 - a2016b - ab2016
= a.(a2016 + b2016) + b.(b2016 + a2016) - ab.(a2015 - b2015)
= (a2016 + b2016).(a + b) - ab.(a2015 + b2015)
Chia cả 2 vế cho a2017 + b2017 = a2016 + b2016 = a2015 + b2015
=> a + b - ab = 1
=> a.(1 - b) - 1 + b = 0
=> a.(1 - b) - (1 - b) = 0
=> (1 - b).(a - 1) = 0
=> a = b = 1
Ta có: P = 20.a + 11.b + 2017
P = 20.1 + 11.b + 2017
P = 20 + 11 + 2017
P = 2048