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
On the grid below, which point is located in the quadrant where the x-coordinate is a positive number and the y-coordinate is a
Ann [662]

Answer:

d

Step-by-step explanation:

d=(x, y) =(8,-4) so 4th quadrant

8 0
3 years ago
A pair of pants with a marked price of $35.00 has a discount of 20%. How much is the discount
Degger [83]

Twenty percent of $35 is 0.20($35) = $7. The discount is $7.

7 0
3 years ago
Read 2 more answers
A line connecting a vertex of a scalene triangle with the midpoint of the opposite side is the
Irina18 [472]
The line would be called the median. The definition of '<span>A line connecting a vertex of a scalene triangle with the midpoint of the opposite side' pertains to the median. There are three medians that connect the scalene triangle. </span>
4 0
3 years ago
Please help meeee!! Finding a slope of a line
Lelechka [254]

Answer:

\huge\boxed{\sf Slope = \frac{5}{2} }

Step-by-step explanation:

<u>Take any two points or coordinated from the graph.</u>

Let's take (2,2) and (0,-3)

So,

\sf (x_{1},y_{1}) = (2,2)\\\\(x_{2},y_{2}) = (0,-3)

Hence,

\sf Slope = \frac{y_{2}-y_{1}}{x_{2}-x_{1}}  \\\\Slope = \frac{-3-2}{0-2} \\\\Slope = \frac{-5}{-2} \\\\Slope = \frac{5}{2} \\\\\rule[225]{225}{2}

Hope this helped!

<h3>~AH1807</h3>
8 0
3 years ago
Read 2 more answers
How do i find the perimeter and area of the triangle with these points? The directions say to round to the nearest tenth. A (‐1,
lbvjy [14]
The perimeter is 9.2 i think
3 0
3 years ago
Other questions:
  • (4s+3)(4s–3) i really neeed help
    15·1 answer
  • Ravi's age is six times that of Gaurav's. After 8 years Ravi will be twice as old as Gaurav. What are their present ages?
    10·1 answer
  • The population of bacteria in an
    6·1 answer
  • An airplane flies at a speed of 474 miles per hour. How many miles does the plane fly in 5 hours?
    5·2 answers
  • 5/10 reduced to its lowest fraction
    11·2 answers
  • Use point-slope form, y - y1 = m(x - x1), to find the linear equation of a line that passes through the points (2, -1) and (10,
    11·2 answers
  • A rectangular shape perimeter of 72 metre if the length of diagonal is 18 what is the area of the plot​
    9·1 answer
  • Translate this statement into an expression:
    12·1 answer
  • Please help me solve this in exponents form ive been having troubles on mynmath homework (3x^6 y^2)^3 × 2x^10 y^-7
    5·1 answer
  • Suppose that paulie and vinny each can produce ice cream or t-shirts. The table shows the quantity of each good that paulie and
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!