How to Solve a Magic Square Puzzle
- Learn how to solve a magic square puzzle and find the missing numbers
- Understand the concept of a magic square and its properties
- Apply organizing skills to complete the puzzle and find the sum of numbers in each row, column, and diagonal
- ベストアンサー
Wanted the correct answer
In the diagram on the under、each number from 1 to 16 is assigned to each of the 16 squares so that the sum of the 4 numbers in any row、column or diagonal is the same.(This kind of square is called a magic square) Seven numbers are already assigned.(Organizing skill) A:Find the sum of four numbers in a row、column or diagonal. B:Find the numbers for a & h.
- 英語
- 回答数1
- ありがとう数1
- みんなの回答 (1)
- 専門家の回答
質問者が選んだベストアンサー
a = 1 b = 4 c = 7 d = 9 e = 8 f = 11 g = 5 h = 13 i = 2
関連するQ&A
- 下記プログラミングについて
下のプログラミングの解説ができる方がいましたら教えてください! どう頑張っても理解できなくて困っています;; もしかしたら間違っているところがあるかもしれませんが、よろしくお願いします。 ---------------------------------------------------------------- #include<stdio.h> #include<math.h> main() { int A,B,C,t,h,i,j,k; int sum_column,sum_row,diagonal1,diagonal2; int conf,diag,seed,max; int U[101][101],V[101][101]; int rand(); A=1,B=1,C=1; printf("Please define the pueen problem size(5-100).\n"); scanf("%d", &max); printf("Please input a seed(0-999).\n"); scanf("%d", &seed); for(i=1; i<=seed; i++){ U[1][1]=rand(); }; for(i=1; i<=max; i++){ for(j=1; j<=max; j++){ U[i][j] = -(abs(rand() % 8)); V[i][j]=0; }; }; /* Main program */ t=0; diag=1; while((diag>0)&&(t<500)){ diag=0; for(i=1; i<=max; i++){ for(j=1; j<=max; j++){ sum_column=0; sum_row=0; for(k=1; k<=max; k++){ sum_row=sum_row+V[i][k]; sum_column=sum_column+V[k][j]; } diagonal1=0; k=1; while(((j+k)<=max)&&((i-k)>=1)){ diagonal1=diagonal1+V[i-k][j+k]; k++; } k=1; while(((j-k)>=1)&&((i+k)<=max)){ diagonal1=diagonal1+V[i+k][j-k]; k++; } k=1; while(((j+k)<=max)&&((i+k)<=max)){ diagonal2=diagonal2+V[i+k][j+k]; k++; } k=1; while(((j-k)>=1)&&((i-k)>=1)){ diagonal2=diagonal2+V[i-k][j-k]; k++; } k=1; h=0; conf=1; if(sum_column == 0) h=1; if(sum_row == 0) h++; if((sum_column+sum_row==2) && (diagonal1<2) && (diagonal2<2)) conf=0; U[i][j]=U[i][j]-A*(sum_row+sum_column-2)-B*(diagonal1+diagonal2)+C*h; if(U[i][j]>8) U[i][j]=8; if(U[i][j]<-8) U[i][j]=-8; if(U[i][j]>0) V[i][j]=1; else V[i][j]=0; diag=diag+conf; }; }; t++; printf("t=%d\n", t); if((t % 15) < 5) C=4; else C=1; }; printf("the number of iteretion steps=%d\n", t); printf("\n"); for(i=1; i<=max; i++){ for(j=1; j<=max; j++){ if(j==max){ if(V[i][j]==1) printf("*\n"); else printf("-\n"); } else{ if(V[i][j]==1) printf("* "); else printf("- "); } } } }
- ベストアンサー
- C・C++・C#
- FIBONACCI NUMBER
今アメリカの学校の数学の宿題をしてるんですが直接英語で問題出させてもらいます。(日本語に訳そうと思ったんですがいってる意味が不確かなので訳せませんでした。ごめんなさい) there are so many relationships involving the fibonacci numbers that a journal and numerous books have been devoted to them. here are two that you are to investigate: 1 let S(n) be the sum ofthe first n Fibonacci numbers. Find a formula for the sequence formed by the partial sums S(n) 2 let Q(n) be the sum of the squares of the first n fibonacci numbers. find a formula for Q(n) in terms of the nth fibonacci number, F(n) 一応自分でfibonacci numberはgeometricなので合計の式はSn=An(1-r^n)/1-rを使うと推測させてもらいましたがそれからどうするのかがさっぱり分かりません。
- 締切済み
- 数学・算数
- 英語数学の答えが分かりません・・・
問題 Write as an algebraic expression 1. five more that the absolute value of a number 2. the additive inverse of a number increased by its absolute value. 3. the additive inverse of the absolute value of twice some number. 4. the absolute value of the sum of two numbers. 5. the sum of the absolute value of two numbers.. 6. The absolute value of the difference of x and y is greater than 5. 7. Three times the absolute value of a number is 8. 8.The absolute value of the sum of two numbers is less than the square of their sum
- 締切済み
- 英語
- 英語数学の答えが分かりません・・・
問題 Write as an algebraic expression 1. five more that the absolute value of a number 2. the additive inverse of a number increased by its absolute value. 3. the additive inverse of the absolute value of twice some number. 4. the absolute value of the sum of two numbers. 5. the sum of the absolute value of two numbers.. 6. The absolute value of the difference of x and y is greater than 5. 7. Three times the absolute value of a number is 8. 8.The absolute value of the sum of two numbers is less than the square of their sum
- 締切済み
- 数学・算数
- 算数の問題(小1)
算数の問題(小1) 子どもの宿題です。 子ども自身で読んで題意を理解するのは無理なので私が質問の意図や題意を理解しようと読んだのですが・・・・・・。 意味がつかめません。 また質問の意図がわかりません。 どなたか教えてください。 Read the sets below. Find which has no elements. Remember if you cannot find an element in the set, then it is empty. Write "#" in the blank if it has no elements. Write this "%" mark if the set is not empty. 1. A set of pretty girls. 2. A set of hands with ten fingers each. 3. A set of square chicos. 4. A set of nine vowels in the English alphabet. 5. A set of green mangos.
- ベストアンサー
- 英語
- terminal unzip失敗について。
http://kuji.vnox.net/download/ このサイトからナンバーズ3のCSVファイルをブラウザ経由でダウンロードして解凍はできるのですが MACのターミナルからcurlでダウンロードしてunzipさせたところ解凍ができないとエラーが出ました 解決させる事は出来ますでしょうか? terminal コマンドで curl -O http://kuji.vnox.net/files/numbers3-csv.zip ダウンロードできたら unzip numbers3-csv.zip ここでエラー。 Archive: numbers3-csv.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of numbers3-csv.zip or numbers3-csv.zip.zip, and cannot find numbers3-csv.zip.ZIP, period. 色々調べてみると壊れているとかで。。。。 どうにか解決作はありませんか? 宜しく御願い致します。
- 締切済み
- Linux系OS
- diagonal の意味
We define a sender-target as having an inflow-outflow-ratio (or outflow-inflow ratio) of 2:1 or lower. In Figure 7, this is illustrated by the addition two diagonal lines below and above the 45度-diagonal. 上記は国家資本の諸国家間の入出量関係を測るための添付画像の解説です。 そこで,なぜ two diagonal lines と45度線が2本なければならないのかが,分かりません。ご指導宜しくお願い致します。
- ベストアンサー
- 英語
- 日本語に訳してください
In a set of four numbers, the first three are in an arithmetic sequence with a common difference of -12 and the last three are in a geometric sequence. Provided the first number equals the fourth, find the four numbers. 数学についての英文です。 よろしくお願いします。
- ベストアンサー
- 英語
お礼
Thanks for your rapid & correct answer.