rainofacid

Homework

Feb 16th, 2015
773
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. Problem 1.Some Primes:
  2.  
  3. The 24th Prime is :89;
  4. The 101st Prime is :547;
  5. The 251st Prime is:1597;
  6.  
  7.  
  8. Problem 2.Some Fibonacci Primes:
  9.  
  10. The 24th Prime :89 is in Fibonacci's numbers at 11th possition;
  11. The 101st Prime:547 is not in Fibonacci's numbers;
  12. The 251st Prime :1597 is in Fibonacci's numbers at 17th possition;
  13.  
  14.  
  15. Problem 3.Some Factorials:
  16.  
  17. 100! is :933262154439441526816992388
  18. 562667004907159682643816214685929638
  19. 952175999932299156089414639761565182
  20. 862536979208272237582511852109168640
  21. 00000000000000000000000
  22.  
  23. 171! is :124101807021766782342484052
  24. 410310399261660557750169318538895180
  25. 361199607522169175299275197812048758
  26. 557646495950167038705280988985869071
  27. 076733124203221848436431047357788996
  28. 854827829075454156196485215346831804
  29. 429323959817369689965723590394761615
  30. 227855818006117636510842880000000000
  31. 0000000000000000000000000000000
  32.  
  33. 250! is :323285626090910773232081455
  34. 202436847099484371767378066674794242
  35. 711282374755511120948881791537102819
  36. 945092850735318943292673093171280899
  37. 082279103027907128192167652724018926
  38. 473321804118626100683292536513367893
  39. 908956993571353017504051317876007724
  40. 793306540233900616482555224881943657
  41. 258605739922264125483298220484913772
  42. 177665064127685880715312897877767295
  43. 191399084437747870258917297325515028
  44. 324178732065818848206247858265980884
  45. 882554880000000000000000000000000000
  46. 0000000000000000000000000000000000
  47.  
  48. Problem 4.Calculate Hypotenuse:
  49.  
  50. 1.Catheri: a = 3 and b = 4:
  51. c = \sqrt ( a^2 + b^2 );
  52. c = \sqrt (9 + 16);
  53. c = \sqrt 25;
  54. c = 5;
  55.  
  56.  
  57. 2.Catheti: a = 10 and b = 12
  58. c = \sqrt ( a^2 + b^2 );
  59. c = \sqrt (100 + 144);
  60. c = \sqrt 244;
  61. c = 15.620499351813;
  62.  
  63.  
  64. 3.Catheti: a = 100 and b = 250
  65. c = \sqrt ( a^2 + b^2 );
  66. c = \sqrt (10000 + 62500);
  67. c = \sqrt 72500;
  68. c = 269.25824035673;
  69.  
  70.  
  71. Problem 5.Numeral System Conversions:
  72.  
  73. 1234d to binary: 1234:2=617|0
  74. 617:2=308|1
  75. 308:2=154|0
  76. 154:2=77 |0
  77. 77:2=38 |1
  78. 38:2=19 |0 ____ 10011010010
  79. 19:2=9 |1
  80. 9:2=4 |1
  81. 4:2=2 |0
  82. 2:2=1 |0
  83. 1:2=0 |1
  84.  
  85.  
  86. 1234d to hexadecimal: 1234:16=77|2
  87. 77:16=4 |D ------ 4D2
  88. 4:16=0 |4
  89.  
  90.  
  91. 1100101b to decimal: 1×2⁶+1×2⁵+0×2⁴+0×2³+1×2²+0×2¹+1×2⁰ = 101
  92. 1100101b to Hex: 64
  93.  
  94.  
  95. ABChex to decimal:10×16²+11×16¹+12×16⁰ = 2748
  96. ABChex to binary :101010111100
  97.  
  98. Problem 6.Least Common Multiple:
  99. LCM(1234,3456) :2132352
Advertisement
Add Comment
Please, Sign In to add comment