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

Home > Numbers
Arithmetic Sequence Crossed Integer Triplet Puzzle (Posted on 2022-09-21) Difficulty: 3 of 5
Determine all possible triplets (a,b,c) of positive integers, with a>b>c, such that:
  • a+bc < b+ca < c+ab are three expressions in arithmetic sequence, and:
  • a+b-c=22

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

Comments: ( Back to comment list | You must be logged in to post comments.)
another take; same answer | Comment 2 of 6 |
clc
for c=1:100
  for b=c+1:c+22
    a=22-(b-c);
    if a<=b
      break
    end
    if a+b*c < b+c*a && b+c*a < c+a*b  && ...
        a+b*c - (b+c*a) == b+c*a - (c+a*b)
        disp([a b c])
        disp([a+b*c , b+c*a , c+a*b])
        disp(' ')
    end
  end
end

finds

    19    10     7     [a, b, c] 
    89   143   197     [a+b*c , b+c*a , c+a*b]
 
    19    13    10     [a, b, c] 
   149   203   257     [a+b*c , b+c*a , c+a*b]
 

  Posted by Charlie on 2022-09-21 09:29:29
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (13)
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