Cody

Problem 46627. Output the Montgomery Form of the Input Matrix

Solution 3016390

Submitted on 1 Oct 2020 by Tim
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
a =[ 53393 10329 42974 46271 28753 18089 49235 55097 23046 4971 59361 63608 2340 2086 25005 44544 16717 16664 54449 3535 8322 62728 55648 18148 50168 42932 33158 53364 38355 34786 59859 31809 61210 3025 52114 10656 45814 15959 36026 51063 41442 52447 44481 6365 12246 7798 58386 60900 60109 61211 6392 9298 49659 53966 32097 32660 62868 22936 18732 8513 18251 27640 48701 45536 29201 62897 35862 12884 49623 37278 35840 60013 25704 20781 42356 22307 9084 16455 49396 30761 62751 51918 42957 62273 46488 38356 9784 40373 24932 780 63234 62881 11218 2257 49459 14667 16876 31017 37212 22093]; ahat =[ 1813 2484 77 195 2790 501 1749 523 1988 187 3109 140 526 2711 798 2194 1399 138 1248 1321 522 56 1196 2156 3094 648 1319 2128 1921 2806 2521 1508 244 1121 2160 654 1256 449 3227 834 1565 724 1386 2953 1865 1622 2335 971 1183 2529 1397 252 1850 2821 446 1907 372 313 1667 858 1152 2941 3302 1865 1138 57 1335 1593 2815 1107 1000 1537 93 3058 2772 1176 625 1949 115 379 2676 386 1180 2358 19 877 2205 2386 443 1285 1103 116 3159 624 923 1052 1853 2764 102 1549]; assert(isequal(montgomeryForm(a,2^16,3329),ahat))

Suggested Problems

More from this Author29

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!