Rob the robot came across a sequence of numbers while studying maths. Whatever logic he tried, he could not find the number that would come next in the sequence. Can you help him out?
Number | 1 | 2 | 3 | 4 | 5 |
Square | 1 | 4 | 9 | 16 | 25 |
Ones digit of the square |
1 | 4 | 9 | 6 | 5 |