|
|||||||||||||||||||||||
Numbers with Invariant Tail by SquaringNotice the following interesting relation for these 3-digit numbers:
6252 = 390 625 = 625 mod 1000 Notice also that if an n-digit number a has the property a2 = a mod 10n, then also b = 10n + 1 – a has the same property, b2 = b mod 10n. Indeed,
This explains the connection 625 + 376 = 1001. Question: Are there numbers having 1000 digits that are equal to their square mod 101000? Input SpecificationThere is no input for this problem. Output Specification
Print the text “ |
|||||||||||||||||||||||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |