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
Help me as fast as possible
kati45 [8]
You can split the figure into a top and bottom box.
Top box has the measurements of 3 by 18 by 20. When you multiply those together you get the volume of that box- 1080.
Bottom box has the measurements of 15 by 8 by 8. Multiplied together for the volume is 960.
Adding the top and bottom box together (1080+960) you get a total of 2040 yards cubed.
5 0
3 years ago
Which is the following is the same as 2,088 feet per minute
Thepotemich [5.8K]
2,088÷60=24.8
24.8 feet per sec
8 0
3 years ago
Plz help look at picture above ​
balu736 [363]

Answer:

2/9

Step-by-step explanation:

The probability of getting any letter once is 1/3

The probability of getting any combinations = 1/3 * 1/3 = 1/9

The probability of getting two of the combinations = 1/9 + 1/9 = 2/9

8 0
3 years ago
Read 2 more answers
"solve each system by graphing"
garik1379 [7]
Put them into y=mx+b
y=1/3x -1 
y=2/3x-4
Graph them. Where they touch is your answer. No touch? No solution. Same line? Infinite solutions.
Second set: Same thing.
Solution to first set is (9,2)
3 0
3 years ago
47+48+49+50+...+113+114 find the sum
maria [59]

Answer:

421

Step-by-step explanation:

5 0
3 years ago
Other questions:
  • The expression 15n + 2(3p) represents the amount Isaiah spent buying gasoline and snacks, where n represents the price of each g
    14·2 answers
  • So I have a problem with a pie chart and I need to find the total amount of people surveyed using the amount of one portion of i
    14·1 answer
  • Their are 5 students in a small class. To make a team the names of 2 of them will be drawn from a hat. How many different teams
    13·1 answer
  • Is 41/50 closer to 9/11 or 10/11
    9·1 answer
  • How do you solve -6x+2y=16 for y
    8·1 answer
  • What is the center of a circle whose equation is x2 + y2 + 4x – 8y + 11 = 0?
    10·1 answer
  • A pyramid has a volume of 18 in. If all measures of the pyramid are
    8·1 answer
  • We are standing on the top of a 1680 ft tall building and throw a small object upwards. At every second, we measure the distance
    14·1 answer
  • No one answer this I just wanna say hiiii
    6·1 answer
  • Can you add a negative and positive fraction or do you have to subtract it?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!