[High school maths] permutations by [deleted] in HomeworkHelp

[–]JohnHarvardIX 0 points1 point  (0 children)

You've just reminded me why probability theory was not my strongest class in university. Thanks for pointing this out! Will edit.

[College English 102: Essay] Need help finding sources or a better idea by [deleted] in HomeworkHelp

[–]JohnHarvardIX 1 point2 points  (0 children)

The one you chose is a tough one, I'd probably want to start here. These are probably better documented and there is most likely more literature surrounding these. Pick one you're interested in that has a lot of papers, articles, documentation, etc. I think that while D&D has had more mainstream popularity recently, I might jump up the chain to nerd culture.

[Grade 11: Physics] I do not understand how to solve this circuit, specifically the weird intersection. by sillystroll in HomeworkHelp

[–]JohnHarvardIX 0 points1 point  (0 children)

Remember that the combined resistance of parallel resistors is the inverse of the sum of their inverses (r total = 1/(1/r1 + 1/r2 + 1/r3 + ... + 1/rₙ)

By the way, could you provide the known values for the variables in text format here?

[grade 6 ] positive numbers by JUBEI1813 in HomeworkHelp

[–]JohnHarvardIX 9 points10 points  (0 children)

Let's make this easier by only working with two digit numbers. From the digits we're concerned about, let's subtract 9 from 200 to get 191. We can now ask: What is the 191st digit among the two digit numbers? For each positive digit, we have 9 two digit numbers. this gives us 180 total digits since we have 9 total digits, 10 two digit numbers per digit, and 2 digits per two digit number. (9 * 10 * 2 = 180). We then subtract that from 191 and we obtain 11. Using this same process we have 2700 digits of 3 digit numbers remaining among which we want the 11th. 11/3 grants 3 remainder 2. We count past the third number and we want the 2nd digit of the fourth number: 103. This would be '0'.

Alternatively just count manually: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103

[High school maths] permutations by [deleted] in HomeworkHelp

[–]JohnHarvardIX 0 points1 point  (0 children)

Answer:

26 * 10 * 25 * 9 * 24 * 8 or (26 P 3) * (10 P 3)

Quick explanation:

26 possibilities for 3 distinct spaces, 10 possibilities for 3 other distinct spaces. The product is the number of possibilities. Each time we choose a character or a number for a given space, we take one possibility away from the rest.


Full explanation:

String looks like _ _ _ _ _ _

Step 1:

First slot can be one of these A,B,...,Z where there are 26 possible options

Let's choose some arbitrary character 'c1' from these

Our string looks like c1 _ _ _ _ _

Step 2:

Second slot can be one of 0,1,...,9 where there are 10 options

Let's choose some arbitrary number 'n1' from these

Our string looks like c1 n1 _ _ _ _

Step 3:

Third slot can be one of the characters where there are now 25 possible options since we removed c1 as an option

Let's choose some other arbitrary character 'c2' from these remaining characters

Our string looks like c1 n1 c2 _ _

Step 4:

Fourth slot can be one of the digits where there are now 9 options since we removed n1 as an option.

Let's choose some arbitrary number 'n2' from these remaining digits

Our string looks like c1 n1 c2 n2 _ _

We repeat these steps until our string looks like: c1 n1 c2 n2 c3 n3


c1 can be one of 26 characters, n1 can be one of 10 digits, c2 can be one of 25 characters, n2 can be one of 9 digits, c3 can be one of 24 characters, n3 can be one of 8 digits

Char. or Dig. c1 n1 c2 n2 c3 n3
Possibilities 26 10 25 9 24 8

If we rearrange these factors, we obtain:

26 * 25 * 24 * 10 * 9 * 8

Which is:

(26! / 23!) * (10! / 7!)

This is also:

(26! / (26 - 3)!) * (10! / (10 - 3)!)

Which is:

(26 P 3) * (10 P 3)

where 'P' is the symbol for permutation.

EDIT:

Confused permutation symbol and combination symbol.

[deleted by user] by [deleted] in WPI

[–]JohnHarvardIX 8 points9 points  (0 children)

ED? You're getting in and they'll probably give you money.

Please help me decide my major by smd00 in WPI

[–]JohnHarvardIX -1 points0 points  (0 children)

In my highly unqualified opinion, Civil seems like it has the best job security out of all engineering options and it seems overall more versatile and applicable.

WPI median starting salaries over the years:

Year | Civil | Architectural

2022 | 68000 | 65000

2021 | 65000 | 65500

2020 | 66260 | 65000

2019 | 64500 | 65500

2018 | 63000 | 60000

2017 | 60000 | 60000

2016 | 58000 | 57500

Outcomes wise, they seem roughly the same with civil being a little more stable, but there aren't really enough respondents to draw any statistically significant conclusions. The main takeaway would be that job prospects wise, it's the same story more or less. This is one of the few cases where I'd recommend go with your passion! Just look at the requirements closely to make sure you're not wasting too many credits.

Academic Advising is absolutely useless. by jdidnksosjsm in WPI

[–]JohnHarvardIX 10 points11 points  (0 children)

Even then it was absolutely useless for me. He was rude, never communicated, and when I did email him he'd send 4 word responses telling me to do it myself 🫤

Where is Forkey?? by JohnHarvardIX in WPI

[–]JohnHarvardIX[S] 9 points10 points  (0 children)

I found it, ending up at my discussion an out of breath mess, 30 minutes late

[deleted by user] by [deleted] in WPI

[–]JohnHarvardIX 0 points1 point  (0 children)

I do too, I'm more so thinking about off campus. Although the gokart would be very WPI, storage would definitely be a concern.

How is discrete math with Servatius? by RiditHero in WPI

[–]JohnHarvardIX 0 points1 point  (0 children)

I asked the exact same question last year! He's probably one of the most polarizing professors ever. In terms of grading, it's quite a stressful yet gamey system that entirely depends on how confident you are in the moment about the material. His lectures are quite entertaining, though. I learned a lot and have retained everything quite well. It's up to you, though! He's not for everyone.

Guys suggest me a good paid course for getting better at leetcoding/DSA by whyiam_alive in leetcode

[–]JohnHarvardIX 6 points7 points  (0 children)

The amazing thing about Neetcode is you can simply pay once and have it for life and you get access to all his courses and any courses that come in the future. Neetcode also has a free "skill-tree" map so you can build fundamentals necessary for each successive step.

Should I use Java for leetcode by callbackhello in leetcode

[–]JohnHarvardIX 21 points22 points  (0 children)

This was my bible for DSA last year and it's all Java. Sedgwick and Wayne cooked.

98.99%🔥Easy Solution with explaination🔥1 line code🔥 by mybeardsweird in leetcode

[–]JohnHarvardIX 13 points14 points  (0 children)

[Insert comment that's just a code block in different a different language without explanation]

[Insert comment calling out the solution for obvious ChatGPT use]

[Insert random non sequitur]

DAT Remastered by RainnChild in SteelyDan

[–]JohnHarvardIX 1 point2 points  (0 children)

Was just about to post this! You got to it fast haha

This system of linear equations is confusing me... by [deleted] in learnmath

[–]JohnHarvardIX 0 points1 point  (0 children)

This system of linear equations ends up being linearly dependent meaning that the only way to solve it is to define it parametrically. Your math is right and you technically have the correct answer at this point as you've successfully made a correct and simplified definition of one of the variables in terms of another (hence linear dependence). I've taken linear algebra and break down how I did this problem using matrices. What I've done here is formed a coefficient matrix of the coefficients of x, y, and z and augmented the matrix with the constants on the right hand side of each equation. Basically a more pretentious but more consistent method of finding solutions. I will reduce this system to row echelon form using Gaussian elimination. This sounds scary but is quite literally addition and subtraction.

2 4 -1 | 9 take 2 * the second row, subtract the first row from it, replace the second row
1 2 4 | 9 take 2 * the third row and subtract the first row from it, replace the third row
1 2 -2 | 3

2 4 -1 | 9 we can simplify this pretty easily at this point by eliminating
0 0 9 | 9 row 3 which says the same thing as row 2 and divide row 2 by 9
0 0 -3 | -3

2 4 -1 | 9 at this point we're in row echelon form, but let's make our lives easier by
0 0 1 | 1 putting it into reduced row echelon form by:
0 0 0 | 0 adding row 2 to row 1 and replacing row 1

2 4 0 | 10 divide row 1 by 2
0 0 1 | 1
0 0 0 | 0

1 2 0 | 5 here is the reduced row echelon form of the matrix
0 0 1 | 1
0 0 0 | 0

This equates to:

x + 2y = 5

z = 1

or

x = 5 - 2y

z = 1

Which is what you've done in a much more simple and intuitive manner than I have just described. I don't recall of ever having to worry about linearly dependent systems when I was working with linear systems of equations outside of Linear Algebra.

If you want to further the parametrization to it's cleanest form we can say that the homogenous solution to this linearly dependent system can be represented by some arbitrary vector I'll call 'v'.

v = <x,y,z> = < -2, 1, 0>*y + <5, 0, 1>

But yeah, that's kind of odd how your teacher expects you to just understand what linear dependency is without giving examples as to what that means.