1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Len [333]
3 years ago
10

There is a school with 1,000 students and 1,000 lockers. On the first day of term the headteacher asks the first student to go a

long and open every single locker, he asks the second to go to every second locker and close it, the third to go to every third locker and close it if it is open or open it if it is closed, the fourth to go to the fourth locker and so on. The process is completed with the thousandth student. How many lockers are open at the end?
Mathematics
2 answers:
zloy xaker [14]3 years ago
5 0
As many were opened during the time period. Jk, I don't know. This is a hard one
FinnZ [79.3K]3 years ago
5 0
Hello,

answer: 31

I have make a programm in Qbasic

CONST Faux = 0
CONST Vrai = NOT (Faux)
CONST nb = 1000
DIM SHARED locker(nb) AS INTEGER
DIM i AS INTEGER, j AS INTEGER, answer AS INTEGER
'1 first student
FOR i = 1 TO nb: locker(i) = Vrai: NEXT i: ' CALL See
'2 2nd student
FOR i = 2 TO nb STEP 2: locker(i) = Faux: NEXT i: 'CALL See
FOR j = 3 TO nb
    FOR i = j TO nb STEP j
        locker(i) = NOT (locker(i))
    NEXT i
    'CALL See
NEXT j
answer = 0
FOR i = 1 TO nb
    IF locker(i) THEN answer = answer + 1
NEXT i
PRINT "answer="; answer
END

SUB See

SHARED locker() AS INTEGER
DIM i AS INTEGER
locker(0) = 0
FOR i = 1 TO nb
    PRINT locker(i);
    IF locker(i) THEN locker(0) = locker(0) + 1
NEXT i
PRINT locker(0)

END SUB


You might be interested in
you are shopping for jeans. city express sells 3 pairs of jeans for $61. denim planet sells 2 pairs of jeans for $73. new thread
Kipish [7]
To find the best deal find the unit rate.
City express unit rate for pants per dollars is 1 pair : $20.33
Denim Planet unit rate is 1 pair : $36.50
New Threads Unit rate is 1 pair : $27.50
So City Express is the best deal

3 0
3 years ago
Read 2 more answers
What is the slope of the line below? If necessary, enter your answer as a
alisha [4.7K]

Step-by-step explanation:

Use formula to find the slope/gradient

\frac{y2 - y1}{x2 - x1}

(-5, -1) = (x1, y1)

(5, 11) = (x2, y2)

So,

=  \frac{11 - ( - 1)}{5 - ( - 5)}  \\  =  \frac{12}{10 }  \\  =  \frac{6}{5}

8 0
3 years ago
Can anyone answer these?????
Arlecino [84]
22's answer is because they're alternate
8 0
3 years ago
Solve
dedylja [7]

Answer:

At the end of "Samuel's Memory, Samuel's feelings change from confusion and fear to anger and hate because his mother dies and he feels that he is all alone (C).

Step-by-step explanation:

6 0
3 years ago
The square root of a negative number, such as StartRoot negative 144 EndRoot, is undefined. Explain why the square root of –x, S
monitta

Part A

The reason why the (√(-x)) is not necessarily undefined, is because x is a placeholder, such that x can take on a negative value for which  (-x) is a positive number, therefore, √(-x) = √(+ve number) is a defined real number.

Part B

The domain is x ≤ 0

The range is f(x) ≥ 0

<h3>What is Real Number?</h3>

A real number is a value of a continuous quantity that can represent a distance along a line.

Here, The given and required information:

Given that √(-144) = Undefined, why is √(-x) not necessarily undefined

The given function, f(x) = √(-x)

Part A

The square root of a real number with a negative value is an imaginary number

The square root of a real number with a positive value or zero, is a real number

√(144) = ±12

A variable, x, is an input value of a function that is a quantity place holder in the function which is a function argument

The given function is f(x) = √(-x)

Where;

x = An argument of the function

When x ≤ 0, such that x is a negative real number or zero, we have;

x = R⁻ or 0

Therefore;

-x= -R⁻ or 0 = R⁺ or 0

-x = R⁺

From which we get;

f(-x)= √(-x) = √(R⁺) = Defined

f(-x) = √(R⁺) ≥ 0 The range of the function is f(x) ≥ 0

An example, when x = -16, we have;

-x = -(-16) = 16

√(-x) √(16) = 4 (Defined)

Part B;

Thee domain where the function is defined is where x = -R⁻,  x ≤ 0

The output of the function f(x) is defined which is the range = f(x) ≥ 0

Thus, the reason why the √(-x) is not  necessarily undefined, is because the value of x can represent a negative real number or zero.

Learn more about real numbers here;

brainly.com/question/17201233

#SPJ1

6 0
2 years ago
Other questions:
  • Angelina bought a 64 ounce can of lemonade mix. She uses 4 ounces of mix for each pitcher of lemonade. How me pitcher of lemonad
    15·1 answer
  • PLEASE ANSWER I WILL GIVE YOU BRAINLIEST!
    14·2 answers
  • PLEASE HELP Michaels home is 12 feet below sea level in his mothers home is 12 feet above sea level Michael says their homes are
    14·2 answers
  • Simplify. <br> 7x+3y-2+6x-1+y^2
    5·2 answers
  • What is the volume of the right prism?<br> 900cm3<br> 1251cm3<br> 1440cm3<br> 1042.5cm3
    12·1 answer
  • I need help with 13 please ASAP
    10·1 answer
  • David can run 4 miles in 75 minutes .what is Davides jogging rate per hour ?
    11·1 answer
  • What is the measurement of these two angles<br> A:106<br> B:102<br> C:13<br> D:95
    9·1 answer
  • 11.
    13·1 answer
  • Find the scale factor that was used to change
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!