Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJComments has a deprecated constructor in /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php on line 25 Call Stack: 0.0001 360712 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0699 1210880 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0699 1210880 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1509 4109552 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1523 4137008 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1532 4154720 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1532 4171728 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1541 4179464 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1541 4179464 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.2032 4414320 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.2048 4431720 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.2054 4452648 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.2159 4514520 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.2159 4514776 14. Joomla\CMS\Plugin\PluginHelper::import() /var/www/astarmathsandphysics/libraries/src/Plugin/PluginHelper.php:182 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; JCommentsACL has a deprecated constructor in /var/www/astarmathsandphysics/components/com_jcomments/classes/acl.php on line 17 Call Stack: 0.0001 360712 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0699 1210880 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0699 1210880 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1509 4109552 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1523 4137008 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1532 4154720 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1532 4171728 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1541 4179464 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1541 4179464 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.2032 4414320 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.2048 4431720 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.2054 4452648 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.3809 12304504 13. JEventDispatcher->trigger() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:199 0.3811 12304952 14. plgContentJComments->update() /var/www/astarmathsandphysics/libraries/joomla/event/dispatcher.php:160 0.3811 12304952 15. plgContentJComments->onContentAfterDisplay() /var/www/astarmathsandphysics/libraries/joomla/event/event.php:70 0.3813 12313200 16. plgContentJComments->onAfterDisplayContent() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:339 0.3816 12314936 17. JComments::show() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:282 0.3824 12347984 18. JCommentsFactory::getACL() /var/www/astarmathsandphysics/components/com_jcomments/jcomments.php:188 0.3824 12348384 19. spl_autoload_call() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274 0.3825 12348464 20. JLoader::load() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274

Finding the Highest Common Factor - HCF - of Two Numbers

The highest common factor is the largest number that divides two number. For example the highest common factor of 6 and 8 is 2 because 2 divides 6 and 2 divides 8 but there is no larger number that divides both 6 and 8. Alternatively we could write down all the factors of 6 in a list, all the factors of 8 in a list and pick the biggest number in both lists:

Factors of 6: 1, 2, 3, 6

Factors of 8: 1, 2, 4, 8

The largest number in both lists is 2 so 2 is the highest common factor. For larger numbers the list may be long and it is quite easy to miss some factors so we need a better method. The most reliable is the tree method, to write both numbers as products of prime numbers.. This works as follows:

Find the highest common factor of 24 and 36.

Write 36 as a product of two numbers. Any two will do but neither number can be 1. I chose 6 and 6.

Write the 6's as products of numbers. The only possible way is 3*2 for each.

Example

 

Write24 as a product of two numbers. Any two numbers will do but neither number can be 1. I chose 4 and 6.

Write the 4 and 6 as products of numbers, neither of which can be 1. The only possible choices are4=2*2 and 6=3*2.

Now 36=3*2*3*2 and 24=2*2*3*2

We have 2 2's and a 3 in both lists so the highest common factor (HCF) is 2*2*3=12

 

Add comment

Security code
Refresh