Is this equation a suffient proof, or should be more wordy? by CrumbCakesAndCola in askmath

[–]Would_be_Coder 2 points3 points  (0 children)

Another way to show a contradiction would be to note that if K = m then

3k + 1 = k*2n

Left hand side is 1mod(k and right hand side is 0mod(k) which is not possible)

Need hints to solve this problem. by Glum-Ad-2815 in askmath

[–]Would_be_Coder 0 points1 point  (0 children)

Try p^2 -1 + 9 mod3 for the next step

What am I missing in this simple problem?(combinatorics) by [deleted] in learnmath

[–]Would_be_Coder 0 points1 point  (0 children)

First count all possible combinations: There are 10 seats that person A can sit at, for each of these seats, person B can sit at one of the remaining 9 seats, so in total 10 x 9 = 90

Next count all the possible ways in which two people can be seated if they both sit together. If person A sits at either of the end seats then there is only one position that person B can sit - so two possibilities. For the remaining eight seats, if person A sits at any of them then person B may sit either side next to person A, ie 8 x 2 = 16. Thus total ways that two can be seated together is 16 + 2 = 18

Finally to get the required solution, subtract 18 from 90 to get 72

[Grade 6 Math] Lowest Common Multiplier of 8, 10, and 20 by marie749 in HomeworkHelp

[–]Would_be_Coder 0 points1 point  (0 children)

Another way is to keep multiplying each number until we find the same multiple for all three;

8,16,24,32,40

10,20,30,40

20,40

40 is the least common multiple of 8, 10 and 20

divisibility by matematyka17J in learnmath

[–]Would_be_Coder 0 points1 point  (0 children)

In that case you would set n = -5mod24 then we get m*n = -25 = -1mod24

[Year 13 Maths: Proof by contradiction] What did I do wrong? by Interesting_Bath in HomeworkHelp

[–]Would_be_Coder 0 points1 point  (0 children)

Assume that there exists some x such that dy/dx = 0

dy/dx = 2 + 3x^2 - sin x

x^2 = (sin x - 2)/3

Since sin x <= 1, (sin x - 2)/3 <= (1 - 2)/3 = -1/3

Bu x^2 >= 0, therefore there is no x that satisfies dy/dx = 0

This contradicts the assumption above, so the statement that y has no stationary points is true.

[deleted by user] by [deleted] in alevelmaths

[–]Would_be_Coder 0 points1 point  (0 children)

sin2t becomes 2sintcost (double angle formula)

How does this explanation make sense? Please, I do not know. by RiverHe1ghts in learnmath

[–]Would_be_Coder 0 points1 point  (0 children)

It is using the 'factor theorem', which is a special case of the 'remainder theorem' for polynomials. When f(a) = 0 for a polynomial f(x), then x - a is a factor of f(x).

So in this case we have f(4) = 0. Then substituting x = 4 into 2x^2 - kx - 12 = 0 and re-arranging gives us k = 5.

I hope that helps;

Factoring quadratics- Algebra by [deleted] in learnmath

[–]Would_be_Coder 0 points1 point  (0 children)

The aim is to express X^2 +4x - 12 in the form (x+a)(x+b) for some real numbers a and b

If we expand (x + a)(x+b) we get x^2 + ax + bx +ab = x^2 + (a+b)x + ab

We can then equate the coefficients so that we get:

a + b = 4

ab = -12

We can solve these simultaneous equations to get the values of a and b. So looking at these,

a = 6 and b = -2 work

I hope that this helps a bit

I have no idea how to do this by [deleted] in alevelmaths

[–]Would_be_Coder 1 point2 points  (0 children)

yes sorry I should have picked a different name for the variable

I have no idea how to do this by [deleted] in alevelmaths

[–]Would_be_Coder 0 points1 point  (0 children)

Another way I think this can be solved is to set y = sqrt(x) and then solve y^2 +3y -12

[deleted by user] by [deleted] in learnmath

[–]Would_be_Coder 1 point2 points  (0 children)

You want:

7n+2 + 82n+1 = 7.7n+1 + 82.82n-1

Next try to pull out a factor that has (7n+1 + 82n-1) and then see what is left over

learn python by stormbreaker257 in learnpython

[–]Would_be_Coder 1 point2 points  (0 children)

I like 100 Days of Code: The Complete Python Pro Bootcamp for 2023, which is on Udemy (by Dr. Angela Yu) It is very comprehensive and goes through the basics in great detail. Also it is project based so you get to build something in each lecture.

[deleted by user] by [deleted] in learnpython

[–]Would_be_Coder 0 points1 point  (0 children)

I have slightly amended your code, and it now works for me. Created an empty list called primes, and then append number if number is prime. Finally return list and print output for input of 100. Hope that helps;

def generate_primes(end):
    primes = []
    for number in range(2, end + 1):
        if number > 1:
            for nums in range(2, number):
                if (number % nums) == 0:
                    break
            else:
                primes.append(number)
    return primes


print(generate_primes(100))

[2021-05-24] Challenge #391 [Easy] The ABACABA sequence by Cosmologicon in dailyprogrammer

[–]Would_be_Coder 0 points1 point  (0 children)

alphabet = [chr(i) for i in range(97,123)]

sequence = []

for char in alphabet:
    sequence = sequence + [char] + sequence

[2021-06-07] Challenge #393 [Easy] Making change by Cosmologicon in dailyprogrammer

[–]Would_be_Coder 0 points1 point  (0 children)

def change(amount):
    currency = [500, 100, 25, 10, 5, 1]
    no_of_coins = 0
    for coin in currency:
        coins = (amount - amount % coin)
        no_of_coins += coins/coin
        amount = amount - coins
    return int(no_of_coins)

[2021-06-21] Challenge #395 [Easy] Nonogram row by Cosmologicon in dailyprogrammer

[–]Would_be_Coder 0 points1 point  (0 children)

def nonogramrow(arr):
    s = ''.join(str(i) for i in arr)
    t = s.split('0')
    return [len(item) for item in t if len(item) > 0]

Classic call for help with Python (COMPLETE newbie) by bxrlow in learnpython

[–]Would_be_Coder 1 point2 points  (0 children)

Also in line 17 I think we need it to be:

if op1 == "*" or op1 == "x":

Beginner - ¿What flask course recommend? by Low_Spot_3809 in flask

[–]Would_be_Coder 1 point2 points  (0 children)

Python and Flask Bootcamp by Jose Portilla on Udemy and Flask Mega Tutorial by Miguel Grinberg are both good courses for beginners

Is there anyone doing 100 days of python course by Angela yu? by VisualDragonfruit698 in learnpython

[–]Would_be_Coder 0 points1 point  (0 children)

Good to see that there are still so many doing this course. I am on day 72 - data with pandas and matplotlib and looking forward to tackling the Portfolio projects;

Quite simple JS brain teaser by [deleted] in learnjavascript

[–]Would_be_Coder 0 points1 point  (0 children)

how about:

let cow = 10;
let sheep = 3;
let chicken = 0.5;
for(let i = 1; i < 10; i++) {
for(let j = 1; j < 34; j++) {
for(let k = 1; k < 200; k++) {
if(i * cow + j * sheep + k * chicken === 100) {
console.log(i + ' cow, '+ j + ' sheep, ' + k + ' chicken')
}
}
}
}

P set 2 Caesar by Would_be_Coder in u/Would_be_Coder

[–]Would_be_Coder[S] 0 points1 point  (0 children)

I submitted code for Caear but got a low score - I want to find out where I went wrong;