The painted cube

Question: You  have 10x10x10 cube which is made up by 1x1x1 smaller size cubes. Imagine a Rubik’s Cube.

The outside of the big cube is painted red on all 6 sides .  If the cube was to be to torn apart to its 1x1x1 smaller cubes, how many of them would have red paint on any of their sides ? Answer:  You know there are 10x10x10=1000 smaller cubes.

Start by finding the ones that are not painted .  Those will be the ones that are not in the outside of the larger cube.   . That will be  (10-2)x(10-2)x(10-2) = 8x8x8= 512 inner cubes .               So the number of painted will be  1000-512=488.

Note: if you are asked a different cube size use  the following formula

X3 – (X-2) 3   where X is the number of smaller cubes each dimention has   .
{"ft_lang_label":"__label__en","ft_lang_prob":0.95949,"math_prob":0.9877066,"size":718,"snap":"2019-43-2019-47","text_gpt3_token_len":211,"char_repetition_ratio":0.14285715,"word_repetition_ratio":0.01459854,"special_character_ratio":0.31337047,"punctuation_ratio":0.09375,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9878028,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-23T04:40:03Z\",\"WARC-Record-ID\":\"<urn:uuid:d2479c67-69d5-4b97-8620-7d29d70a5960>\",\"Content-Length\":\"233831\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e84c2cd8-4183-47b7-b84d-668f9b7ed465>\",\"WARC-Concurrent-To\":\"<urn:uuid:28fc3950-2426-42a5-9d62-7272f8fb0174>\",\"WARC-IP-Address\":\"23.91.64.189\",\"WARC-Target-URI\":\"http://www.theforexcabin.com/forex-trading-careers/brain-teasers/famous-brain-teasers-questions-and-answers/painted-cube/\",\"WARC-Payload-Digest\":\"sha1:W7IUWH252ZVOTIKSHGXXVSU4PMBUKZZO\",\"WARC-Block-Digest\":\"sha1:ZXDU6UJ7DYKK64L3MGJYIOK6BFDJXPNW\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570987829458.93_warc_CC-MAIN-20191023043257-20191023070757-00455.warc.gz\"}"}