500以内能被3整除的数有哪些?
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 08:46:05
500以内能被3整除的数有哪些?
500以内能被3整除的数有哪些?
500以内能被3整除的数有哪些?
0,3,6,…,3*floor(n/3) 其中floor表示向下取整.在此n=500,floor(500/3)=166 于是500以内能被3整除的数有0,3,6,…,498.
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96,99,102,105,108,111,114,117,120,123,126,129,132,135,138,141,144,147,150,153,156,159,162,165,168,171,174,177,180,183,186,189,192,195,198,201,204,207,210,213,216,219,222,225,228,231,234,237,240,243,246,249,252,255,258,261,264,267,270,273,276,279,282,285,288,291,294,297,300,303,306,309,312,315,318,321,324,327,330,333,336,339,342,345,348,351,354,357,360,363,366,369,372,375,378,381,384,387,390,393,396,399,402,405,408,411,414,417,420,423,426,429,432,435,438,441,444,447,450,453,456,459,462,465,468,471,474,477,480,483,486,489,492,495,498