Counting triplets where each elements are from different groupsRecursive and closed form solution for choosing $n$ pairs/triplets.. of $kn$ elements.Counting triplets with red edges in each pairSelect elements from $N$ setsTwo different results for splitting sample points into groups of a certain size?Counting distinct positive valued k-tuples that sum to n where each entry can be no greater than some value.Arranging m distinct groups of k elements each?How many ways can numbers be split into different groupsForming triplets from pairsCounting different way of arranging letters from two groups, without repetitionsThe number of sequences of length $10$ that can be formed with $5$ unique digits containing two of each where no two adjacent elements are alike

How does Loki do this?

How can I kill an app using Terminal?

Large drywall patch supports

Two monoidal structures and copowering

Why are there no referendums in the US?

What is the best translation for "slot" in the context of multiplayer video games?

Is a stroke of luck acceptable after a series of unfavorable events?

Would this custom Sorcerer variant that can only learn any verbal-component-only spell be unbalanced?

How do scammers retract money, while you can’t?

Increase performance creating Mandelbrot set in python

How to check is there any negative term in a large list?

Would a high gravity rocky planet be guaranteed to have an atmosphere?

Return the Closest Prime Number

Avoiding estate tax by giving multiple gifts

What does "I’d sit this one out, Cap," imply or mean in the context?

Flow chart document symbol

A Rare Riley Riddle

Different result between scanning in Epson's "color negative film" mode and scanning in positive -> invert curve in post?

Class Action - which options I have?

Do the temporary hit points from the Battlerager barbarian's Reckless Abandon stack if I make multiple attacks on my turn?

What is paid subscription needed for in Mortal Kombat 11?

Failed to fetch jessie backports repository

Why does indent disappear in lists?

Trouble understanding the speech of overseas colleagues



Counting triplets where each elements are from different groups


Recursive and closed form solution for choosing $n$ pairs/triplets.. of $kn$ elements.Counting triplets with red edges in each pairSelect elements from $N$ setsTwo different results for splitting sample points into groups of a certain size?Counting distinct positive valued k-tuples that sum to n where each entry can be no greater than some value.Arranging m distinct groups of k elements each?How many ways can numbers be split into different groupsForming triplets from pairsCounting different way of arranging letters from two groups, without repetitionsThe number of sequences of length $10$ that can be formed with $5$ unique digits containing two of each where no two adjacent elements are alike













0












$begingroup$


Let's say we have given groups with more elements each, is there easy way to count number of ways to choose three elements from different groups.



For example if our groups are $1, 2 text and 3, 4$. There are two ways to form the triplets $1, 2, 3, 1, 2, 4$.



I tried fixing all three groups but that works in $O(N^3)$, where $N$ is the number of groups. Is it possible to make it in $O(N)$?










share|cite|improve this question









$endgroup$











  • $begingroup$
    Do you mean there can be $N>3$ groups? (Because if there are exactly $N=3$ groups the answer is trivial. But then I'm surprised your example has $N=3$.)
    $endgroup$
    – antkam
    14 hours ago










  • $begingroup$
    Yes, there can be N>3 groups
    $endgroup$
    – someone123123
    14 hours ago











  • $begingroup$
    Can I assume all the groups are disjoint, i.e. no element appears in two or more groups? If so, I have an $O(N)$ solution... Is this homework? If so I will give you a hint, otherwise I will post the solution.
    $endgroup$
    – antkam
    14 hours ago















0












$begingroup$


Let's say we have given groups with more elements each, is there easy way to count number of ways to choose three elements from different groups.



For example if our groups are $1, 2 text and 3, 4$. There are two ways to form the triplets $1, 2, 3, 1, 2, 4$.



I tried fixing all three groups but that works in $O(N^3)$, where $N$ is the number of groups. Is it possible to make it in $O(N)$?










share|cite|improve this question









$endgroup$











  • $begingroup$
    Do you mean there can be $N>3$ groups? (Because if there are exactly $N=3$ groups the answer is trivial. But then I'm surprised your example has $N=3$.)
    $endgroup$
    – antkam
    14 hours ago










  • $begingroup$
    Yes, there can be N>3 groups
    $endgroup$
    – someone123123
    14 hours ago











  • $begingroup$
    Can I assume all the groups are disjoint, i.e. no element appears in two or more groups? If so, I have an $O(N)$ solution... Is this homework? If so I will give you a hint, otherwise I will post the solution.
    $endgroup$
    – antkam
    14 hours ago













0












0








0


1



$begingroup$


Let's say we have given groups with more elements each, is there easy way to count number of ways to choose three elements from different groups.



For example if our groups are $1, 2 text and 3, 4$. There are two ways to form the triplets $1, 2, 3, 1, 2, 4$.



I tried fixing all three groups but that works in $O(N^3)$, where $N$ is the number of groups. Is it possible to make it in $O(N)$?










share|cite|improve this question









$endgroup$




Let's say we have given groups with more elements each, is there easy way to count number of ways to choose three elements from different groups.



For example if our groups are $1, 2 text and 3, 4$. There are two ways to form the triplets $1, 2, 3, 1, 2, 4$.



I tried fixing all three groups but that works in $O(N^3)$, where $N$ is the number of groups. Is it possible to make it in $O(N)$?







combinatorics






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked 22 hours ago









someone123123someone123123

455414




455414











  • $begingroup$
    Do you mean there can be $N>3$ groups? (Because if there are exactly $N=3$ groups the answer is trivial. But then I'm surprised your example has $N=3$.)
    $endgroup$
    – antkam
    14 hours ago










  • $begingroup$
    Yes, there can be N>3 groups
    $endgroup$
    – someone123123
    14 hours ago











  • $begingroup$
    Can I assume all the groups are disjoint, i.e. no element appears in two or more groups? If so, I have an $O(N)$ solution... Is this homework? If so I will give you a hint, otherwise I will post the solution.
    $endgroup$
    – antkam
    14 hours ago
















  • $begingroup$
    Do you mean there can be $N>3$ groups? (Because if there are exactly $N=3$ groups the answer is trivial. But then I'm surprised your example has $N=3$.)
    $endgroup$
    – antkam
    14 hours ago










  • $begingroup$
    Yes, there can be N>3 groups
    $endgroup$
    – someone123123
    14 hours ago











  • $begingroup$
    Can I assume all the groups are disjoint, i.e. no element appears in two or more groups? If so, I have an $O(N)$ solution... Is this homework? If so I will give you a hint, otherwise I will post the solution.
    $endgroup$
    – antkam
    14 hours ago















$begingroup$
Do you mean there can be $N>3$ groups? (Because if there are exactly $N=3$ groups the answer is trivial. But then I'm surprised your example has $N=3$.)
$endgroup$
– antkam
14 hours ago




$begingroup$
Do you mean there can be $N>3$ groups? (Because if there are exactly $N=3$ groups the answer is trivial. But then I'm surprised your example has $N=3$.)
$endgroup$
– antkam
14 hours ago












$begingroup$
Yes, there can be N>3 groups
$endgroup$
– someone123123
14 hours ago





$begingroup$
Yes, there can be N>3 groups
$endgroup$
– someone123123
14 hours ago













$begingroup$
Can I assume all the groups are disjoint, i.e. no element appears in two or more groups? If so, I have an $O(N)$ solution... Is this homework? If so I will give you a hint, otherwise I will post the solution.
$endgroup$
– antkam
14 hours ago




$begingroup$
Can I assume all the groups are disjoint, i.e. no element appears in two or more groups? If so, I have an $O(N)$ solution... Is this homework? If so I will give you a hint, otherwise I will post the solution.
$endgroup$
– antkam
14 hours ago










0






active

oldest

votes











Your Answer





StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

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%2f3164181%2fcounting-triplets-where-each-elements-are-from-different-groups%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















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%2f3164181%2fcounting-triplets-where-each-elements-are-from-different-groups%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

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