单选题Let Ω p be defined as p2/3-p for all positive integers, p. If Ωn = s, and s is a positive integer, which of the following is a possible value for s?A1B3C5D6E8
单选题
Let Ω p be defined as p2/3-p for all positive integers, p. If Ωn = s, and s is a positive integer, which of the following is a possible value for s?
A
1
B
3
C
5
D
6
E
8
参考解析
解析:
根据题干Ωn =n2 /3-n=s. n为正整数,且s为正整数;根据函数可知只有当n是3的倍数时,s才能为整数,否则如果n2 /3不是整数,s也不是整数。现在可以从符合条件的n的最小值3代入到函数中。当n=3时,n2 /3-n =32 /3-3 = 3-3 = 0 = s;当n=6时,n2 /3-n = 62 /3-6 = 12-6 = 6 = s。所以故选D。
根据题干Ωn =n2 /3-n=s. n为正整数,且s为正整数;根据函数可知只有当n是3的倍数时,s才能为整数,否则如果n2 /3不是整数,s也不是整数。现在可以从符合条件的n的最小值3代入到函数中。当n=3时,n2 /3-n =32 /3-3 = 3-3 = 0 = s;当n=6时,n2 /3-n = 62 /3-6 = 12-6 = 6 = s。所以故选D。
相关考题:
— Come on. Let’s try the Chinese food.— ________ .A.You are so kind to let me have a tasteB.Yes, I will tryC.Mm… it’s so deliciousD.They are all good food
下列程序的运行结果是【 】。 include include void main() {char * a[5 下列程序的运行结果是【 】。include<iostream. h>include<string. h>void main(){char * a[5]={"stuent","worker","teacher","soldier"," peasant"};char * p1, * p2;p1=p2=a[0]for(int i=0;i<5;i++){if(strcmp(a[i],p1)>0)p1=a[i];if(strcmp(a[i],p2)<0)p2=a[i];}cout<<p1<<","<<p2<<endl;}
以下程序运行后的输出结果是 。includeincludcincludemain(){char*p;int i;P=(char*)malloc(sizeof(char)*20):strcpy(p.“welcome”):for(i=6;i=0;i一一) putchar(*(p+i));printf(“\n”);free(P);
以下程序的输出结果是______。main(){ char a[]="programming",b[]="language"; char *p1,*p2; int i; p1=a;p2=b; for(i=0;i<7;i++) if(*(p1+i)==*(p2+i))printf("%c",*(p1+i));}A.gmB.rgC.orD.ga
写出结果void foo(int p1[]){*p1 += 5;}void bar(int p2[]){p2[1] = 15;}void main(){int a[]={3,4,5};int b[]={3,4,5};int *p2;p2=a[1];bar(p2);printf("%i %i %i\n",a[0],a[1],a[2]);p2=b[0];p2++;foo(p2);bar(p2);printf("%i %i %i\n",b[0],b[1],b[2]);}
在下列程序中:Program test(input, output);var i. j:integer;procedure calc(p1, p2: integer);beginp2: = p2 * p2 p1: = p1 - p2; p2: = p2 - p1; end {caic}begin {main} i: =2;j:=3;calc(i,j); write(j);end {main}当参数传递采用引用方式(Call by reference)时,所得结果j=(6);当参数传递采用换名方式(Call by name)时,所得结果,j=(7);当参数传递采用赋值方式(Call by value)时,所得结果,j=(8)。A.3B.6C.10D.16
Shall I get some chalk for you? ()AThat's rightBNo, thanks, let Tom do itCI can do it without youDNot at all
Shall I get some chalk for you? ()A、That's rightB、No, thanks, let Tom do itC、I can do it without youD、Not at all
两电阻相并联,已知R1/R2=1/2,则流入电阻的电流之比I1/I2、功率之比P1/P2分别是()。A、I1/I2=2,P1/P2=2B、I1/I2=2,P1/P2=4C、I1/I2=1/2,P1/P2=1/2D、I1/I2=2,P1/P2=1/4
单选题x, y, and z are positive integers. Which of the following lists all the possible ways for x + y + z to be an odd number?I. One of the numbers is odd.II. Two of the numbers are odd.III. Three of the numbers are odd.AIBI and IICI and IIIDII and III
多选题If x and y are both positive even integers, which of the following expressions must be even? (Select all such expressions.)AxyB(x+1)yCx(y+1)
单选题If m and n are positive integers and 3m+n-1=2m+2n, which of the following must be true?I. m and n are consecutive integers.II. m is even.III. n is odd.ANoneBI onlyCII onlyDIII onlyEI, II, and III
单选题If the sum of 4 consecutive positive integers is w, in terms of w, which of the following represents the sum of the next 4 consecutive positive integers?Aw2+16Bw+16C4w+16D4w+4Ew+4
单选题For all positive integers a and b, let (a|b)=(a-b)/(a+b) If m is a positive integer, what is (m|2m) ?A-1/2B-1/3C1/3D1/2E2
单选题How many positive integers less than 70 are equal to the product of a positive multiple of 5 and an even number?A4B6C9D10E11
单选题The train leaves at 6:00 p. m., so I have to be at the station _____ 5:00 p. m. at the latest.AuntilBafterCbyDaround
问答题Any decimal that has a finite number of nonzero digits is a terminating decimal. For example, 16, 12.43, and 0.26 are all terminating decimals. If a and b are positive integers and the ratio a/b is expressed as a decimal, is a/b a terminating decimal? (1) b=5 (2) 70
单选题Let @ represent one of the four basic arithmetic operations such that, for any nonzero real numbers P and Q, P @ 0=P and P @ Q=Q @ P. Which arithmetic operation(S) does the symbol @ represent?A×onlyB+onlyC-onlyD-and×E+and÷