Find all triplets $(a,b,c)$ less than or equal to 50 such that $a + b +c$ be divisible by $a$ and $b$ and $c$. Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Nice tuples! A number theory problem.How rare are the primes $p$ such that $p$ divides the sum of all primes less than $p$?No. of Primes less than or equal to nNumber of primes less than or equal to $n$How many numbers are there less than $n$ such that they are divisible by all numbers from 2 to 10Find all triplets $(a,b,c)$ where $ab=c^2$How can I prove that the GCD is less or equal than the square root of the numbers' sum?Identifying all prime numbers less than 200Number of compositions of $n$ such that each term is less than equal to $k.$Find $n$ such that polynomial is divisibleFind all integer for triplets$(a,b,c)$ [detail]

What was the last profitable war?

Besides transaction validation, are there any other uses of the Script language in Bitcoin

In musical terms, what properties are varied by the human voice to produce different words / syllables?

Is there a verb for listening stealthily?

Is this Kuo-toa homebrew race balanced?

One-one communication

What is "Lambda" in Heston's original paper on stochastic volatility models?

Is the time—manner—place ordering of adverbials an oversimplification?

Pointing to problems without suggesting solutions

Noise in Eigenvalues plot

How to name indistinguishable henchmen in a screenplay?

Is it OK to use the testing sample to compare algorithms?

Determine whether an integer is a palindrome

Baking rewards as operations

Diophantine equation 3^a+1=3^b+5^c

By what mechanism was the 2017 UK General Election called?

Is a copyright notice with a non-existent name be invalid?

How could a hydrazine and N2O4 cloud (or it's reactants) show up in weather radar?

Centre cell vertically in tabularx

The Nth Gryphon Number

What did Turing mean when saying that "machines cannot give rise to surprises" is due to a fallacy?

Getting representations of the Lie group out of representations of its Lie algebra

Why is there so little support for joining EFTA in the British parliament?

calculator's angle answer for trig ratios that can work in more than 1 quadrant on the unit circle



Find all triplets $(a,b,c)$ less than or equal to 50 such that $a + b +c$ be divisible by $a$ and $b$ and $c$.



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Nice tuples! A number theory problem.How rare are the primes $p$ such that $p$ divides the sum of all primes less than $p$?No. of Primes less than or equal to nNumber of primes less than or equal to $n$How many numbers are there less than $n$ such that they are divisible by all numbers from 2 to 10Find all triplets $(a,b,c)$ where $ab=c^2$How can I prove that the GCD is less or equal than the square root of the numbers' sum?Identifying all prime numbers less than 200Number of compositions of $n$ such that each term is less than equal to $k.$Find $n$ such that polynomial is divisibleFind all integer for triplets$(a,b,c)$ [detail]










1












$begingroup$


Find all triplets $(a,b,c)$ less than or equal to 50 such that $a + b +c$ be divisible by $a$ and $b$ and $c$.(i.e $a|a+b+c~~,~~b|a+b+c~~,~~c|a+b+c$) for example $(10,20,30)$ is a good triplet. ($10|60 , 20|60 , 30|60$).



Note: $a,b,cleq 50$ and $a,b,cin N$.



In other way the question says to find all $(a,b,c)$ such that $lcm(a,b,c) | a+b+c$



After writing different situations, I found that if $gcd(a,b,c) = d$ then all triplets are in form of $(d,2d,3d)$ or $(d,d,d)$ or $(d,d,2d)$ are answers. (of course the permutation of these like $(2d,3d,d)$ is also an answer). It gives me $221$ different triplets. I checked this with a simple Java program and the answer was correct but I cannot say why other forms are not valid. I can write other forms and check them one by one but I want a more intelligent solution than writing all other forms. Can anyone help?



My java code: (All of the outputs are in form of $(d,d,d)$ or $(d,2d,3d)$ or $(d,d,2d)$ and their permutations.)



import java.util.ArrayList;
import java.util.Collections;

public class Main
public static void main(String[] args)
int count = 0;
for (int i = 1; i <= 50; i++)
for (int j = 1; j <= 50; j++)
for (int k = 1; k <= 50; k++)
int s = i + j + k;
if (s % i == 0 && s % j == 0 && s % k == 0 && i != j && j != k && i != k)
ArrayList<Integer> array = new ArrayList<Integer>();
array.clear();
int g = gcd(gcd(i, j), k);
array.add(i / g);
array.add(j / g);
array.add(k / g);
Collections.sort(array);
int condition = 4; //To find out whether it is (d,d,d) or (d,d,2d) or (d,2d,3d)
if (array.get(0) == 1 && array.get(1) == 1 && array.get(2) == 1)
condition = 1;

if (array.get(0) == 1 && array.get(1) == 1 && array.get(2) == 2)
condition = 2;

if (array.get(0) == 1 && array.get(1) == 2 && array.get(2) == 3)
condition = 3;

System.out.printf("%d %d %d ::: Condition: %dn", i, j, k, condition);
count++;




System.out.println(count);


public static int gcd(int a, int b)
if (b == 0)
return a;
else
return gcd(b, a % b);











share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    ... I recall seeing this question yesterday...
    $endgroup$
    – Servaes
    Apr 2 at 16:14






  • 1




    $begingroup$
    @Servaes I used the search and didn't find this question. But as you said,I checked and found it. I am not the same person. Maybe his source and I was the same because I was investigating homework of a discrete mathematics course of a university and I found this question and he/she stated that it is his homework.I found the question interesting and asked it here. I completely checked the conditions with a Java program and find tested my hypothesis but I don't know how to prove it without checking all different forms. for better clarification, I'll add my java code to the problem.
    $endgroup$
    – amir na
    Apr 2 at 16:47











  • $begingroup$
    What does a triplet being less than $50$ mean? That each term is less than 50? are you assuming each term is non-negative?
    $endgroup$
    – fleablood
    Apr 2 at 16:53






  • 1




    $begingroup$
    Also what does "m is divisible to k" mean? Does that mean $frac km$ is an integer? Or that $frac mk$ is an integer? Or something else? I usually hear "m is divisible by k" to mean $frac mk$ is an integer.
    $endgroup$
    – fleablood
    Apr 2 at 16:55






  • 1




    $begingroup$
    @Servaes math.stackexchange.com/questions/3170626/… I didn't find this in search because the title of that question is not very good and don't have the actual question and I think stack Exchange only search by title.
    $endgroup$
    – amir na
    Apr 2 at 16:57
















1












$begingroup$


Find all triplets $(a,b,c)$ less than or equal to 50 such that $a + b +c$ be divisible by $a$ and $b$ and $c$.(i.e $a|a+b+c~~,~~b|a+b+c~~,~~c|a+b+c$) for example $(10,20,30)$ is a good triplet. ($10|60 , 20|60 , 30|60$).



Note: $a,b,cleq 50$ and $a,b,cin N$.



In other way the question says to find all $(a,b,c)$ such that $lcm(a,b,c) | a+b+c$



After writing different situations, I found that if $gcd(a,b,c) = d$ then all triplets are in form of $(d,2d,3d)$ or $(d,d,d)$ or $(d,d,2d)$ are answers. (of course the permutation of these like $(2d,3d,d)$ is also an answer). It gives me $221$ different triplets. I checked this with a simple Java program and the answer was correct but I cannot say why other forms are not valid. I can write other forms and check them one by one but I want a more intelligent solution than writing all other forms. Can anyone help?



My java code: (All of the outputs are in form of $(d,d,d)$ or $(d,2d,3d)$ or $(d,d,2d)$ and their permutations.)



import java.util.ArrayList;
import java.util.Collections;

public class Main
public static void main(String[] args)
int count = 0;
for (int i = 1; i <= 50; i++)
for (int j = 1; j <= 50; j++)
for (int k = 1; k <= 50; k++)
int s = i + j + k;
if (s % i == 0 && s % j == 0 && s % k == 0 && i != j && j != k && i != k)
ArrayList<Integer> array = new ArrayList<Integer>();
array.clear();
int g = gcd(gcd(i, j), k);
array.add(i / g);
array.add(j / g);
array.add(k / g);
Collections.sort(array);
int condition = 4; //To find out whether it is (d,d,d) or (d,d,2d) or (d,2d,3d)
if (array.get(0) == 1 && array.get(1) == 1 && array.get(2) == 1)
condition = 1;

if (array.get(0) == 1 && array.get(1) == 1 && array.get(2) == 2)
condition = 2;

if (array.get(0) == 1 && array.get(1) == 2 && array.get(2) == 3)
condition = 3;

System.out.printf("%d %d %d ::: Condition: %dn", i, j, k, condition);
count++;




System.out.println(count);


public static int gcd(int a, int b)
if (b == 0)
return a;
else
return gcd(b, a % b);











share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    ... I recall seeing this question yesterday...
    $endgroup$
    – Servaes
    Apr 2 at 16:14






  • 1




    $begingroup$
    @Servaes I used the search and didn't find this question. But as you said,I checked and found it. I am not the same person. Maybe his source and I was the same because I was investigating homework of a discrete mathematics course of a university and I found this question and he/she stated that it is his homework.I found the question interesting and asked it here. I completely checked the conditions with a Java program and find tested my hypothesis but I don't know how to prove it without checking all different forms. for better clarification, I'll add my java code to the problem.
    $endgroup$
    – amir na
    Apr 2 at 16:47











  • $begingroup$
    What does a triplet being less than $50$ mean? That each term is less than 50? are you assuming each term is non-negative?
    $endgroup$
    – fleablood
    Apr 2 at 16:53






  • 1




    $begingroup$
    Also what does "m is divisible to k" mean? Does that mean $frac km$ is an integer? Or that $frac mk$ is an integer? Or something else? I usually hear "m is divisible by k" to mean $frac mk$ is an integer.
    $endgroup$
    – fleablood
    Apr 2 at 16:55






  • 1




    $begingroup$
    @Servaes math.stackexchange.com/questions/3170626/… I didn't find this in search because the title of that question is not very good and don't have the actual question and I think stack Exchange only search by title.
    $endgroup$
    – amir na
    Apr 2 at 16:57














1












1








1





$begingroup$


Find all triplets $(a,b,c)$ less than or equal to 50 such that $a + b +c$ be divisible by $a$ and $b$ and $c$.(i.e $a|a+b+c~~,~~b|a+b+c~~,~~c|a+b+c$) for example $(10,20,30)$ is a good triplet. ($10|60 , 20|60 , 30|60$).



Note: $a,b,cleq 50$ and $a,b,cin N$.



In other way the question says to find all $(a,b,c)$ such that $lcm(a,b,c) | a+b+c$



After writing different situations, I found that if $gcd(a,b,c) = d$ then all triplets are in form of $(d,2d,3d)$ or $(d,d,d)$ or $(d,d,2d)$ are answers. (of course the permutation of these like $(2d,3d,d)$ is also an answer). It gives me $221$ different triplets. I checked this with a simple Java program and the answer was correct but I cannot say why other forms are not valid. I can write other forms and check them one by one but I want a more intelligent solution than writing all other forms. Can anyone help?



My java code: (All of the outputs are in form of $(d,d,d)$ or $(d,2d,3d)$ or $(d,d,2d)$ and their permutations.)



import java.util.ArrayList;
import java.util.Collections;

public class Main
public static void main(String[] args)
int count = 0;
for (int i = 1; i <= 50; i++)
for (int j = 1; j <= 50; j++)
for (int k = 1; k <= 50; k++)
int s = i + j + k;
if (s % i == 0 && s % j == 0 && s % k == 0 && i != j && j != k && i != k)
ArrayList<Integer> array = new ArrayList<Integer>();
array.clear();
int g = gcd(gcd(i, j), k);
array.add(i / g);
array.add(j / g);
array.add(k / g);
Collections.sort(array);
int condition = 4; //To find out whether it is (d,d,d) or (d,d,2d) or (d,2d,3d)
if (array.get(0) == 1 && array.get(1) == 1 && array.get(2) == 1)
condition = 1;

if (array.get(0) == 1 && array.get(1) == 1 && array.get(2) == 2)
condition = 2;

if (array.get(0) == 1 && array.get(1) == 2 && array.get(2) == 3)
condition = 3;

System.out.printf("%d %d %d ::: Condition: %dn", i, j, k, condition);
count++;




System.out.println(count);


public static int gcd(int a, int b)
if (b == 0)
return a;
else
return gcd(b, a % b);











share|cite|improve this question











$endgroup$




Find all triplets $(a,b,c)$ less than or equal to 50 such that $a + b +c$ be divisible by $a$ and $b$ and $c$.(i.e $a|a+b+c~~,~~b|a+b+c~~,~~c|a+b+c$) for example $(10,20,30)$ is a good triplet. ($10|60 , 20|60 , 30|60$).



Note: $a,b,cleq 50$ and $a,b,cin N$.



In other way the question says to find all $(a,b,c)$ such that $lcm(a,b,c) | a+b+c$



After writing different situations, I found that if $gcd(a,b,c) = d$ then all triplets are in form of $(d,2d,3d)$ or $(d,d,d)$ or $(d,d,2d)$ are answers. (of course the permutation of these like $(2d,3d,d)$ is also an answer). It gives me $221$ different triplets. I checked this with a simple Java program and the answer was correct but I cannot say why other forms are not valid. I can write other forms and check them one by one but I want a more intelligent solution than writing all other forms. Can anyone help?



My java code: (All of the outputs are in form of $(d,d,d)$ or $(d,2d,3d)$ or $(d,d,2d)$ and their permutations.)



import java.util.ArrayList;
import java.util.Collections;

public class Main
public static void main(String[] args)
int count = 0;
for (int i = 1; i <= 50; i++)
for (int j = 1; j <= 50; j++)
for (int k = 1; k <= 50; k++)
int s = i + j + k;
if (s % i == 0 && s % j == 0 && s % k == 0 && i != j && j != k && i != k)
ArrayList<Integer> array = new ArrayList<Integer>();
array.clear();
int g = gcd(gcd(i, j), k);
array.add(i / g);
array.add(j / g);
array.add(k / g);
Collections.sort(array);
int condition = 4; //To find out whether it is (d,d,d) or (d,d,2d) or (d,2d,3d)
if (array.get(0) == 1 && array.get(1) == 1 && array.get(2) == 1)
condition = 1;

if (array.get(0) == 1 && array.get(1) == 1 && array.get(2) == 2)
condition = 2;

if (array.get(0) == 1 && array.get(1) == 2 && array.get(2) == 3)
condition = 3;

System.out.printf("%d %d %d ::: Condition: %dn", i, j, k, condition);
count++;




System.out.println(count);


public static int gcd(int a, int b)
if (b == 0)
return a;
else
return gcd(b, a % b);








number-theory divisibility greatest-common-divisor






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Apr 2 at 17:02







amir na

















asked Apr 2 at 15:35









amir naamir na

3277




3277







  • 1




    $begingroup$
    ... I recall seeing this question yesterday...
    $endgroup$
    – Servaes
    Apr 2 at 16:14






  • 1




    $begingroup$
    @Servaes I used the search and didn't find this question. But as you said,I checked and found it. I am not the same person. Maybe his source and I was the same because I was investigating homework of a discrete mathematics course of a university and I found this question and he/she stated that it is his homework.I found the question interesting and asked it here. I completely checked the conditions with a Java program and find tested my hypothesis but I don't know how to prove it without checking all different forms. for better clarification, I'll add my java code to the problem.
    $endgroup$
    – amir na
    Apr 2 at 16:47











  • $begingroup$
    What does a triplet being less than $50$ mean? That each term is less than 50? are you assuming each term is non-negative?
    $endgroup$
    – fleablood
    Apr 2 at 16:53






  • 1




    $begingroup$
    Also what does "m is divisible to k" mean? Does that mean $frac km$ is an integer? Or that $frac mk$ is an integer? Or something else? I usually hear "m is divisible by k" to mean $frac mk$ is an integer.
    $endgroup$
    – fleablood
    Apr 2 at 16:55






  • 1




    $begingroup$
    @Servaes math.stackexchange.com/questions/3170626/… I didn't find this in search because the title of that question is not very good and don't have the actual question and I think stack Exchange only search by title.
    $endgroup$
    – amir na
    Apr 2 at 16:57













  • 1




    $begingroup$
    ... I recall seeing this question yesterday...
    $endgroup$
    – Servaes
    Apr 2 at 16:14






  • 1




    $begingroup$
    @Servaes I used the search and didn't find this question. But as you said,I checked and found it. I am not the same person. Maybe his source and I was the same because I was investigating homework of a discrete mathematics course of a university and I found this question and he/she stated that it is his homework.I found the question interesting and asked it here. I completely checked the conditions with a Java program and find tested my hypothesis but I don't know how to prove it without checking all different forms. for better clarification, I'll add my java code to the problem.
    $endgroup$
    – amir na
    Apr 2 at 16:47











  • $begingroup$
    What does a triplet being less than $50$ mean? That each term is less than 50? are you assuming each term is non-negative?
    $endgroup$
    – fleablood
    Apr 2 at 16:53






  • 1




    $begingroup$
    Also what does "m is divisible to k" mean? Does that mean $frac km$ is an integer? Or that $frac mk$ is an integer? Or something else? I usually hear "m is divisible by k" to mean $frac mk$ is an integer.
    $endgroup$
    – fleablood
    Apr 2 at 16:55






  • 1




    $begingroup$
    @Servaes math.stackexchange.com/questions/3170626/… I didn't find this in search because the title of that question is not very good and don't have the actual question and I think stack Exchange only search by title.
    $endgroup$
    – amir na
    Apr 2 at 16:57








1




1




$begingroup$
... I recall seeing this question yesterday...
$endgroup$
– Servaes
Apr 2 at 16:14




$begingroup$
... I recall seeing this question yesterday...
$endgroup$
– Servaes
Apr 2 at 16:14




1




1




$begingroup$
@Servaes I used the search and didn't find this question. But as you said,I checked and found it. I am not the same person. Maybe his source and I was the same because I was investigating homework of a discrete mathematics course of a university and I found this question and he/she stated that it is his homework.I found the question interesting and asked it here. I completely checked the conditions with a Java program and find tested my hypothesis but I don't know how to prove it without checking all different forms. for better clarification, I'll add my java code to the problem.
$endgroup$
– amir na
Apr 2 at 16:47





$begingroup$
@Servaes I used the search and didn't find this question. But as you said,I checked and found it. I am not the same person. Maybe his source and I was the same because I was investigating homework of a discrete mathematics course of a university and I found this question and he/she stated that it is his homework.I found the question interesting and asked it here. I completely checked the conditions with a Java program and find tested my hypothesis but I don't know how to prove it without checking all different forms. for better clarification, I'll add my java code to the problem.
$endgroup$
– amir na
Apr 2 at 16:47













$begingroup$
What does a triplet being less than $50$ mean? That each term is less than 50? are you assuming each term is non-negative?
$endgroup$
– fleablood
Apr 2 at 16:53




$begingroup$
What does a triplet being less than $50$ mean? That each term is less than 50? are you assuming each term is non-negative?
$endgroup$
– fleablood
Apr 2 at 16:53




1




1




$begingroup$
Also what does "m is divisible to k" mean? Does that mean $frac km$ is an integer? Or that $frac mk$ is an integer? Or something else? I usually hear "m is divisible by k" to mean $frac mk$ is an integer.
$endgroup$
– fleablood
Apr 2 at 16:55




$begingroup$
Also what does "m is divisible to k" mean? Does that mean $frac km$ is an integer? Or that $frac mk$ is an integer? Or something else? I usually hear "m is divisible by k" to mean $frac mk$ is an integer.
$endgroup$
– fleablood
Apr 2 at 16:55




1




1




$begingroup$
@Servaes math.stackexchange.com/questions/3170626/… I didn't find this in search because the title of that question is not very good and don't have the actual question and I think stack Exchange only search by title.
$endgroup$
– amir na
Apr 2 at 16:57





$begingroup$
@Servaes math.stackexchange.com/questions/3170626/… I didn't find this in search because the title of that question is not very good and don't have the actual question and I think stack Exchange only search by title.
$endgroup$
– amir na
Apr 2 at 16:57











1 Answer
1






active

oldest

votes


















4












$begingroup$

If $aleq bleq c$ then $cmid a+b+c$ implies $cmid a+b$ and so $a+b=cz$ for some $zinBbbN$. Then
$$cz=a+bleq2bleq2c,$$
and so $zleq2$. If $z=2$ then the inequalities are all equalities and so $a=b=c$. Then the triplet $(a,b,c)$ is of the form $(d,d,d)$.



If $z=1$ then $c=a+b$, and then $bmid a+b+c$ implies that $bmid 2a$. As $bgeq a$ it follows that either $b=a$ or $b=2a$. If $b=a$ then $c=2a$ and the triplet $(a,b,c)$ is of the form $(d,d,2d)$. If $b=2a$ then $c=3a$ and the triplet $(a,b,c)$ is of the form $(d,2d,3d)$.



This allows us to count the total number of triplets quite easily;



  1. The number of triplets of the form $(d,d,d)$ is precisely $50$; one for each positive integer $d$ with $dleq50$.

  2. The number of triplets of the form $(d,d,2d)$ is precisely $25$; one for each positive integer $d$ with $2dleq50$. Every such triplets has precisely three distinct permutations of its coordinates, yielding a total of $3times25=75$ triplets.

  3. The number of triplets of the form $(d,2d,3d)$ is precisely $16$; one for each positive integer $d$ with $3dleq50$. Every such triplets has precisely six distinct permutations of its coordinates, yielding a total of $6times 16=96$ triplets.

This yields a total of $50+75+96=221$ triplets.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    Simple code finds $221$.
    $endgroup$
    – David G. Stork
    Apr 4 at 4:56










  • $begingroup$
    @DavidG.Stork A simple count shows the same ;)
    $endgroup$
    – Servaes
    Apr 4 at 13:29











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3172005%2ffind-all-triplets-a-b-c-less-than-or-equal-to-50-such-that-a-b-c-be-div%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4












$begingroup$

If $aleq bleq c$ then $cmid a+b+c$ implies $cmid a+b$ and so $a+b=cz$ for some $zinBbbN$. Then
$$cz=a+bleq2bleq2c,$$
and so $zleq2$. If $z=2$ then the inequalities are all equalities and so $a=b=c$. Then the triplet $(a,b,c)$ is of the form $(d,d,d)$.



If $z=1$ then $c=a+b$, and then $bmid a+b+c$ implies that $bmid 2a$. As $bgeq a$ it follows that either $b=a$ or $b=2a$. If $b=a$ then $c=2a$ and the triplet $(a,b,c)$ is of the form $(d,d,2d)$. If $b=2a$ then $c=3a$ and the triplet $(a,b,c)$ is of the form $(d,2d,3d)$.



This allows us to count the total number of triplets quite easily;



  1. The number of triplets of the form $(d,d,d)$ is precisely $50$; one for each positive integer $d$ with $dleq50$.

  2. The number of triplets of the form $(d,d,2d)$ is precisely $25$; one for each positive integer $d$ with $2dleq50$. Every such triplets has precisely three distinct permutations of its coordinates, yielding a total of $3times25=75$ triplets.

  3. The number of triplets of the form $(d,2d,3d)$ is precisely $16$; one for each positive integer $d$ with $3dleq50$. Every such triplets has precisely six distinct permutations of its coordinates, yielding a total of $6times 16=96$ triplets.

This yields a total of $50+75+96=221$ triplets.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    Simple code finds $221$.
    $endgroup$
    – David G. Stork
    Apr 4 at 4:56










  • $begingroup$
    @DavidG.Stork A simple count shows the same ;)
    $endgroup$
    – Servaes
    Apr 4 at 13:29















4












$begingroup$

If $aleq bleq c$ then $cmid a+b+c$ implies $cmid a+b$ and so $a+b=cz$ for some $zinBbbN$. Then
$$cz=a+bleq2bleq2c,$$
and so $zleq2$. If $z=2$ then the inequalities are all equalities and so $a=b=c$. Then the triplet $(a,b,c)$ is of the form $(d,d,d)$.



If $z=1$ then $c=a+b$, and then $bmid a+b+c$ implies that $bmid 2a$. As $bgeq a$ it follows that either $b=a$ or $b=2a$. If $b=a$ then $c=2a$ and the triplet $(a,b,c)$ is of the form $(d,d,2d)$. If $b=2a$ then $c=3a$ and the triplet $(a,b,c)$ is of the form $(d,2d,3d)$.



This allows us to count the total number of triplets quite easily;



  1. The number of triplets of the form $(d,d,d)$ is precisely $50$; one for each positive integer $d$ with $dleq50$.

  2. The number of triplets of the form $(d,d,2d)$ is precisely $25$; one for each positive integer $d$ with $2dleq50$. Every such triplets has precisely three distinct permutations of its coordinates, yielding a total of $3times25=75$ triplets.

  3. The number of triplets of the form $(d,2d,3d)$ is precisely $16$; one for each positive integer $d$ with $3dleq50$. Every such triplets has precisely six distinct permutations of its coordinates, yielding a total of $6times 16=96$ triplets.

This yields a total of $50+75+96=221$ triplets.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    Simple code finds $221$.
    $endgroup$
    – David G. Stork
    Apr 4 at 4:56










  • $begingroup$
    @DavidG.Stork A simple count shows the same ;)
    $endgroup$
    – Servaes
    Apr 4 at 13:29













4












4








4





$begingroup$

If $aleq bleq c$ then $cmid a+b+c$ implies $cmid a+b$ and so $a+b=cz$ for some $zinBbbN$. Then
$$cz=a+bleq2bleq2c,$$
and so $zleq2$. If $z=2$ then the inequalities are all equalities and so $a=b=c$. Then the triplet $(a,b,c)$ is of the form $(d,d,d)$.



If $z=1$ then $c=a+b$, and then $bmid a+b+c$ implies that $bmid 2a$. As $bgeq a$ it follows that either $b=a$ or $b=2a$. If $b=a$ then $c=2a$ and the triplet $(a,b,c)$ is of the form $(d,d,2d)$. If $b=2a$ then $c=3a$ and the triplet $(a,b,c)$ is of the form $(d,2d,3d)$.



This allows us to count the total number of triplets quite easily;



  1. The number of triplets of the form $(d,d,d)$ is precisely $50$; one for each positive integer $d$ with $dleq50$.

  2. The number of triplets of the form $(d,d,2d)$ is precisely $25$; one for each positive integer $d$ with $2dleq50$. Every such triplets has precisely three distinct permutations of its coordinates, yielding a total of $3times25=75$ triplets.

  3. The number of triplets of the form $(d,2d,3d)$ is precisely $16$; one for each positive integer $d$ with $3dleq50$. Every such triplets has precisely six distinct permutations of its coordinates, yielding a total of $6times 16=96$ triplets.

This yields a total of $50+75+96=221$ triplets.






share|cite|improve this answer











$endgroup$



If $aleq bleq c$ then $cmid a+b+c$ implies $cmid a+b$ and so $a+b=cz$ for some $zinBbbN$. Then
$$cz=a+bleq2bleq2c,$$
and so $zleq2$. If $z=2$ then the inequalities are all equalities and so $a=b=c$. Then the triplet $(a,b,c)$ is of the form $(d,d,d)$.



If $z=1$ then $c=a+b$, and then $bmid a+b+c$ implies that $bmid 2a$. As $bgeq a$ it follows that either $b=a$ or $b=2a$. If $b=a$ then $c=2a$ and the triplet $(a,b,c)$ is of the form $(d,d,2d)$. If $b=2a$ then $c=3a$ and the triplet $(a,b,c)$ is of the form $(d,2d,3d)$.



This allows us to count the total number of triplets quite easily;



  1. The number of triplets of the form $(d,d,d)$ is precisely $50$; one for each positive integer $d$ with $dleq50$.

  2. The number of triplets of the form $(d,d,2d)$ is precisely $25$; one for each positive integer $d$ with $2dleq50$. Every such triplets has precisely three distinct permutations of its coordinates, yielding a total of $3times25=75$ triplets.

  3. The number of triplets of the form $(d,2d,3d)$ is precisely $16$; one for each positive integer $d$ with $3dleq50$. Every such triplets has precisely six distinct permutations of its coordinates, yielding a total of $6times 16=96$ triplets.

This yields a total of $50+75+96=221$ triplets.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Apr 4 at 13:29

























answered Apr 2 at 17:18









ServaesServaes

30.9k342101




30.9k342101











  • $begingroup$
    Simple code finds $221$.
    $endgroup$
    – David G. Stork
    Apr 4 at 4:56










  • $begingroup$
    @DavidG.Stork A simple count shows the same ;)
    $endgroup$
    – Servaes
    Apr 4 at 13:29
















  • $begingroup$
    Simple code finds $221$.
    $endgroup$
    – David G. Stork
    Apr 4 at 4:56










  • $begingroup$
    @DavidG.Stork A simple count shows the same ;)
    $endgroup$
    – Servaes
    Apr 4 at 13:29















$begingroup$
Simple code finds $221$.
$endgroup$
– David G. Stork
Apr 4 at 4:56




$begingroup$
Simple code finds $221$.
$endgroup$
– David G. Stork
Apr 4 at 4:56












$begingroup$
@DavidG.Stork A simple count shows the same ;)
$endgroup$
– Servaes
Apr 4 at 13:29




$begingroup$
@DavidG.Stork A simple count shows the same ;)
$endgroup$
– Servaes
Apr 4 at 13:29

















draft saved

draft discarded
















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3172005%2ffind-all-triplets-a-b-c-less-than-or-equal-to-50-such-that-a-b-c-be-div%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Triangular numbers and gcdProving sum of a set is $0 pmod n$ if $n$ is odd, or $fracn2 pmod n$ if $n$ is even?Is greatest common divisor of two numbers really their smallest linear combination?GCD, LCM RelationshipProve a set of nonnegative integers with greatest common divisor 1 and closed under addition has all but finite many nonnegative integers.all pairs of a and b in an equation containing gcdTriangular Numbers Modulo $k$ - Hit All Values?Understanding the Existence and Uniqueness of the GCDGCD and LCM with logical symbolsThe greatest common divisor of two positive integers less than 100 is equal to 3. Their least common multiple is twelve times one of the integers.Suppose that for all integers $x$, $x|a$ and $x|b$ if and only if $x|c$. Then $c = gcd(a,b)$Which is the gcd of 2 numbers which are multiplied and the result is 600000?

Ingelân Ynhâld Etymology | Geografy | Skiednis | Polityk en bestjoer | Ekonomy | Demografy | Kultuer | Klimaat | Sjoch ek | Keppelings om utens | Boarnen, noaten en referinsjes Navigaasjemenuwww.gov.ukOffisjele webside fan it regear fan it Feriene KeninkrykOffisjele webside fan it Britske FerkearsburoNederlânsktalige ynformaasje fan it Britske FerkearsburoOffisjele webside fan English Heritage, de organisaasje dy't him ynset foar it behâld fan it Ingelske kultuergoedYnwennertallen fan alle Britske stêden út 'e folkstelling fan 2011Notes en References, op dizze sideEngland

Հադիս Բովանդակություն Անվանում և նշանակություն | Դասակարգում | Աղբյուրներ | Նավարկման ցանկ