{"id":17303,"date":"2021-08-26T10:42:44","date_gmt":"2021-08-26T05:12:44","guid":{"rendered":"https:\/\/python-programs.com\/?p=17303"},"modified":"2021-11-22T18:37:11","modified_gmt":"2021-11-22T13:07:11","slug":"python-program-to-check-strontio-number-or-not","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-check-strontio-number-or-not\/","title":{"rendered":"Python Program to Check Strontio Number or Not"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Find nth Prime Number<\/a>
\nStrontio numbers:<\/strong><\/p>\n

Strontio numbers are four-digit numbers that, when multiplied by two, produce the same digit in the hundreds and tens places. Keep in mind that the input number must be four digits.<\/p>\n

example :<\/p>\n

Let N= 1386<\/p>\n

A number multiplied by 2= 1386*2=2772<\/p>\n

2772%1000 =772<\/p>\n

772\/10 = 77<\/p>\n

77\/10 = 7<\/p>\n

77%7= 7<\/p>\n

if (77%7 == 77\/10 ), then it is strontio number.<\/p>\n

Therefore 1386 is strontio number.<\/p>\n

some of the examples of strontio numbers are :<\/p>\n

1111, 2222, 3333, 4444, 5555, 6666, 7777, 8888, 9999, 1001, 2002, 3003, and other numbers.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given number = 1001<\/pre>\n

Output:<\/strong><\/p>\n

The given number 1001 is strontio number<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given number = 1234<\/pre>\n

Output:<\/strong><\/p>\n

The given number 1234 is not a strontio number<\/pre>\n

Program to Check Strontio Number or Not.<\/h2>\n

Below are the ways to check a strontio number or not.<\/p>\n