Self Number Calculator

Enter a number to check if it's a self number, or input a range to generate all self numbers within that range.

Self Number Check or Generate

What is a Self Number?

A self number, also known as a Colombian number, is a natural number that cannot be expressed as the sum of any other natural number and the sum of its digits. For a number \( n \) to be a self number, there must be no integer \( m \) such that \( n = m + S(m) \), where \( S(m) \) is the sum of the digits of \( m \).

How to Determine if a Number is a Self Number

  1. Check if Natural: Ensure the number is a natural number.
  2. Iterative Validation: For all natural numbers \( m \) less than \( n \):
    • Compute \( S(m) \), the sum of the digits of \( m \).
    • Calculate \( m + S(m) \).
    • If any \( m \) satisfies \( m + S(m) = n \), then \( n \) is not a self number.
  3. Conclusion: If no such \( m \) is found after checking all possibilities, \( n \) is a self number.

For example: Is 21 a Self Number?

Solution:

Iterative Check: For \( m = 1 \) to \( 20 \), calculate \( m + S(m) \):

  • 1: \( 1 + 1 = 2 \)
  • 2: \( 2 + 2 = 4 \)
  • 3: \( 3 + 3 = 6 \)
  • 4: \( 4 + 4 = 8 \)
  • ...
  • 14: \( 14 + 1 + 4 = 19 \)
  • 15: \( 15 + 1 + 5 = 21 \)

Result: Since \( m = 15 \) satisfies the condition \( m + S(m) = 21 \), the number 21 is not a self number.

The First 100 Self Numbers

  • 1
  • 3
  • 5
  • 7
  • 9
  • 20
  • 31
  • 42
  • 53
  • 64
  • 75
  • 86
  • 97
  • 108
  • 110
  • 121
  • 132
  • 143
  • 154
  • 165
  • 176
  • 187
  • 198
  • 209
  • 211
  • 222
  • 233
  • 244
  • 255
  • 266
  • 277
  • 288
  • 299
  • 310
  • 312
  • 323
  • 334
  • 345
  • 356
  • 367
  • 378
  • 389
  • 400
  • 411
  • 413
  • 424
  • 435
  • 446
  • 457
  • 468
  • 479
  • 490
  • 501
  • 512
  • 514
  • 525
  • 536
  • 547
  • 558
  • 569
  • 580
  • 591
  • 602
  • 613
  • 615
  • 626
  • 637
  • 648
  • 659
  • 670
  • 681
  • 692
  • 703
  • 714
  • 716
  • 727
  • 738
  • 749
  • 760
  • 771
  • 782
  • 793
  • 804
  • 815
  • 817
  • 828
  • 839
  • 850
  • 861
  • 872
  • 883
  • 894
  • 905
  • 916
  • 918
  • 929
  • 940
  • 951
  • 962
  • 973