Alright, let's work through 5197 times 7771 step by step
5197 × 7771 = 7771 × (5197)
+ 7771 × 7 producing 54397
+ 7771 × 90 that is equal 699390
+ 7771 × 100 which equals 777100
+ 7771 × 5000 resulting in 38855000

= 40385887
