[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 63 KB, 425x235, Schermata da 2019-03-12 18-07-46.png [View same] [iqdb] [saucenao] [google]
10459978 No.10459978 [Reply] [Original]

write a program that finds all the fractions (from 100 to 9999) as the image

>> No.10459981

why? do it yourself

>> No.10460006

>>10459978
The set of all fractions between 100 and 9999 is a subset of R/Q. Therefore there are uncountable many.

>> No.10460074

>>10460006
>math majors

>> No.10460180

>>10460006
>The set of all fractions between 100 and 9999 is a subset of R/Q

o boy

>> No.10460199

>>10460006
state of /sci/

>> No.10460212

>>10460006
>Fractions
>uncountable many
Jesus Christ, how can you even know the words "uncountable infinity" yet think the set of all fractions are uncountable?

>> No.10460239

>>10460180
>>10460199
>>10460212
>fractions are always rational right?
Jesus Christ /sci/

>> No.10460252

>>10459978
>literally two (2) nested for loops
Retard

>> No.10460272

>>10459978
https://pastebin.com/mQ7FJkxv
...
161/161 = 1/1
161/644 = 11/44
161/1610 = 1/10
161/6440 = 11/440
162/648 = 12/48
162/6480 = 12/480
163/326 = 1/2
163/652 = 13/52
163/2608 = 13/208
163/3260 = 1/20
163/6520 = 13/520
164/656 = 14/56
164/3608 = 14/308
164/6560 = 14/560
165/264 = 15/24
165/363 = 15/33
165/462 = 15/42
165/660 = 15/60
165/2640 = 15/240
165/3630 = 15/330
165/4620 = 15/420
...

>> No.10460284

>>10460239
>fractions are always irrational right?
Jesus Christ (You)

>> No.10460289

>>10460284
My favorite rational number is [math]\frac{1+\sqrt{5}}{2}[/math], what's yours?

>> No.10460328

2) 100 / 200
(2) 163 / 326
(2) 316 / 632
(2) 1603 / 3206
(2) 1630 / 3260
(2) 1633 / 3266
(2) 1663 / 3326
(2) 1963 / 3926
(2) 3016 / 6032
(2) 3160 / 6320
(2) 3163 / 6326
(2) 3166 / 6332
(2) 3196 / 6392
(2) 3316 / 6632
(3) 100 / 300
(3) 144 / 432
(3) 145 / 435
(3) 1050 / 3150
(3) 1440 / 4320
(3) 1442 / 4326
(3) 1444 / 4332
(3) 1445 / 4335
(3) 1450 / 4350
(3) 1455 / 4365
(3) 1545 / 4635
(3) 1799 / 5397
(3) 1979 / 5937
(3) 2144 / 6432
(4) 100 / 400
(4) 160 / 640
(4) 166 / 664
(4) 187 / 748
(4) 1233 / 4932
(4) 1335 / 5340
(4) 1600 / 6400
(4) 1660 / 6640
(4) 1666 / 6664
(4) 1676 / 6704
(4) 1687 / 6748
(4) 1766 / 7064
(4) 1787 / 7148
(4) 1837 / 7348
(4) 1867 / 7468
(4) 1870 / 7480
(4) 1887 / 7548
(4) 1987 / 7948
(4) 2331 / 9324
(5) 100 / 500
(5) 190 / 950
(5) 199 / 995
(5) 1306 / 6530
(5) 1499 / 7495
(5) 1900 / 9500
(5) 1949 / 9745
(5) 1990 / 9950
(5) 1999 / 9995
(6) 100 / 600
(6) 127 / 762
(6) 144 / 864
(6) 1040 / 6240
(6) 1080 / 6480
(6) 1227 / 7362
(6) 1270 / 7620
(6) 1272 / 7632
(6) 1277 / 7662
(6) 1440 / 8640
(6) 1444 / 8664
(6) 1449 / 8694
(6) 1494 / 8964
(6) 1594 / 9564
(7) 100 / 700
(7) 139 / 973
(7) 1339 / 9373
(7) 1390 / 9730
(7) 1399 / 9793
(8) 100 / 800
(8) 1229 / 9832
(9) 100 / 900

>> No.10460526

>>10459978
This is a simple application of almost matching patterns. Write it yourself. Bonus points if you go ham and use function convolutions

>> No.10460529

>>10460289
The natural inclination is to consider rational fractions then. Then there is a clear bijection between the naturals and the these fractions

>> No.10460538

>>10459978
Also this is a related combinatorics question
>given up to 10 numerals, how many pairs of unique naturals can I produce such that they share no common numerals

I guess there’s the added restriction that there are no repeated symbols in a single string either. Otherwise, the number would be infinite

>> No.10460557

>>10460289
>>10460529
Even if we consider all fractions, it's still not a subset of R\Q since there are rational fractions

>> No.10460560

>>10460006
absolutely embarrassing

>> No.10460641

>>10459978
I swear I did it for the Euler project

>> No.10460647

>>10460557
>>10460560
Yep, I was wrong. Theres still uncountably many irrationals on a given interval in the reals though.

>> No.10460664

>>10460647
Yes, and it's irrelevant. You cannot redeem yourself now so if I were you i'd just stop posting lol.

>> No.10461051
File: 47 KB, 645x968, 1506549005221.jpg [View same] [iqdb] [saucenao] [google]
10461051

>>10460006
so this is what being in highschool and watching pop-sci/math videos does to your brain.

>> No.10461080

>>10460664
>redeeming
Why the islamaphobia?

I made a mistake and corrected it. Big deal.

>> No.10461221

>>10459978
Its in pseudo code:

Post question on 4chan;
Question ("write a program that finds all the fractions (from 100 to 9999) as the image");
Return (answer);

I haz job now?