Jump to content

Numbers

Featured Replies

Find all two digit-numbers N such that N+2 is also a two-digit number and the digit sum of N+2 is less than the digit sum of N

Can easily be achived using a simple program, but why?

[b]int[/b] = [b]10[/b]
 while ([b]int[/b] < [b]97[/b]){
    if (mod [b]int[/b],[b]10[/b] + [[b]int[/b] - mod [b]int[/b],[b]10[/b]]){
    add [b]int[/b] to [b]array[/b]
   }
 }

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.