[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Modulus in base n

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 17
Thread images: 2

File: Pale_Blue_Dot.png (563KB, 614x453px) Image search: [Google]
Pale_Blue_Dot.png
563KB, 614x453px
Is there a generic formula for performing a modulus operation on a number that is in base 'n'? If not, what's the best way of performing a modulus on a very large number that is not in base 10?
>>
>>7789303
yes

if its negative, times by -1
>>
>>7789303
That picture is sexy.

More.
>>
>>7789674
>>7789677
/sci/ is filled with highschoolers and 20 year old undergrads unfortunately for you, OP
>>
>>7789678
I'm 22, and not currently undergoing any degree of higher education.
>>
>>7789681
Also, I still want more.

An idea I had for recreation is a black background with a few overlapping gradients from one end to the other. Then to run it through some sort of blurring kernel, add noise, and tweak sharpness.

I would like to know where it came from, or how it was generated.
>>
>>7789683
>Pale_Blue_Dot.png
Google 'pale blue dot', and you'll be even more amazed! The picture is not generated....
>>
>>7789678
I am actually an 1st year CS undergraduate, and was interested in finding a quick generic method but I have resorted to converting the number to base 10, then using Google to take the modules of each 'unit' of the input and adding the remainders so I have something manageable.
>>
>>7789303
Convert x and y to base 10. Do x % y in base 10. Convert the result back to base n.
>>
>>7790548
Yeh, cheers
>>
Do you literally don't know how division works?
>>
>>7789303
its time to load up GMP
>>
>>7789303
Retarded CS majors don't belong here.
>>
File: CS' proud retard.png (17KB, 1041x148px) Image search: [Google]
CS' proud retard.png
17KB, 1041x148px
>>7792089

CS majors man. Just be happy that they can dress themselves.
>>
>>7789303
No there isn't because in different bases you have different numbers of symbols and the symbols you used in one base has a different meaning in another base. all modulus operations will work regardless of base so just pick one and stick to it or convert in and out of whichever base suits you best.
>>
>>7792339
I love that Irony that that message was entered, processed, transmitted, received and decoded using complex systems and techniques invented and built by people who probably majored in CS...
>>
>>7793430
>>people who probably majored in CS
>we wuz electrical and computer engineers

top kek
Thread posts: 17
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.