All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Digital Sum Triples (Posted on 2023-10-15) Difficulty: 3 of 5
The digital sum S(N) of an integer N is the sum of its decimal digits. So S(128)=11.

Three positive integers A, B and C such that A = S(B)S(C), B = S(A)S(C), and C = S(A)S(B) are called a digital sum triple, for example A=B=C=81.

Find all such triples.

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution computer solution | Comment 1 of 2
clc, clearvars
for a=1:2025
  sa=sod(a);
  for b=a:2025
    sb=sod(b);
    for c=sa*sb 
      if c>=b 
        sc=sod(c);
        if sb*sc==a
          if sa*sc==b
            disp([a b c])
          end
        end
      end 
    end
  end
end

finds

     1     1     1
    64    80    80
    81    81    81


  Posted by Charlie on 2023-10-15 10:14:32
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information