What does QUARK PAIRS Means..??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

What does QUARK PAIRS Means..???

meaning of QUARK PAIRS

14th Aug 2017, 10:32 PM
Samuel babalola
Samuel babalola - avatar
6 Answers
+ 5
The quark of an integer n (denied Q(n)) is a number that can be calculated by the following algorithm: 1. Convert n to binary 2. Count the occurrences of the digit '1' 3. Multiply the number of ones by the original number For example: n = 42 1. 42_(10) = 101010_(2) 2. 101010 has 3 ones 3. 3 * 42 = 126 In conclusion of the algorithm, the quark of 42 is equal to126 (Q(42) == 126). But what is a quark *pair*? A quark pair is any pair of integers whose quarks are equal. Example of a quark pair: (22, 33). This is because Q(22) == Q(33).
15th Aug 2017, 12:36 AM
Erik Johanson
Erik Johanson - avatar
+ 12
Here's a code about Quark Pairs https://code.sololearn.com/W25d6BU6Eb38/?ref=app (contains a definition in bottom)
15th Aug 2017, 1:15 AM
MIZO PRO (ハムザ)
MIZO PRO (ハムザ) - avatar
14th Aug 2017, 11:12 PM
Salekin
Salekin - avatar
+ 2
Thanks @everyone for the info
15th Aug 2017, 4:11 AM
Manual
Manual - avatar
+ 1
I sorry
15th Aug 2017, 1:40 PM
Ahmad Ahmad Zakari
Ahmad Ahmad Zakari - avatar
0
u can't figure anything plx
15th Aug 2017, 1:39 PM
Ahmad Ahmad Zakari
Ahmad Ahmad Zakari - avatar