roles) || in_array('administrator', $user->roles) || in_array('admin',$user->roles ) ) { ?>
probname); ?>
Topic Classification: nid, "Topic Classification"); ?> Tags: nid, "Problem Tag");?>
Topics: nid, "Topics"); ?> Prerequisites: nid, "Prerequisites"); ?>
Supplies: nid, "Supplies"); ?> Pedagogy: nid, "Pedagogy"); ?>

1-2
3-4
5-6

7-8

9-10

11-12

13-14

Solution: nid, "Solution"); ?>
Problem

A finite sequence of three-digit integers has the property that the tens and units digits of each term are, respectively, the hundreds and tens digits of the next term, and the tens and units digits of the last term are, respectively, the hundreds and tens digits of the first term. For example, such a sequence might begin with terms $247$, $475$, and $756$ and end with the term 824. Let $S$ be the sum of all the terms in the sequence. What is the largest prime number that always divides $S\,$?

Details
Source Title: AMC 10 Problem Collection 2007
Authors
nid); while ($data = db_fetch_object($authorresult)) { $authorfirstname =$data->firstname; $authorlastname =$data->lastname; $authors =$authorfirstname . ' ' . $authorlastname; print$authors; ?>
References
nid); if (mysql_num_rows($refresult) > 0 ) { ?> nmcreferenceid;$referenceauthor = $data->author;$referencetitle = $data->title;$referenceurl = $data->url; ?> 0 ) { print '  Reference Author Reference Title Reference URL '; } ?> nid);$totalSets = mysql_num_rows($setsResult); if ($totalSets > 0) { ?>
Problem Sets This Problem Belongs to:
parent_nid; ?> Set:
VARIABLES
nid, 1); while ($data = db_fetch_object($variablesresult)) { $variable =$data->elementdata; ?> •

DEFINITIONS
nid); while ($data = db_fetch_object($defresult)) { $definitionid =$data->nmcdefinitionid; $definition =$data->definition; $definitionname =$data->definitionname; ?> •